Hello to all,
I have a question about parsing zigbee commands when they present a payload.
In the Window Covering device I use the define "ZB_ZCL_WINDOW_COVERING_GET_GO_TO_LIFT_PERCENTAGE_REQ" to parsing but I never read the value, I receive the status as "ZB_ZCL_PARSE_STATUS_SUCCESS". But Not able to get the value from the "percentage_lift_value" Structure member.
The Window Covering Device correctly detects the message, what I can't do is read the percentage value received as a payload.
Bellow is the snippet of my code from the Callback function for handling ZCL commands(zb_void_t zcl_device_cb(zb_bufid_t bufid)), please let me know if I'm missing out on anything.
case ZB_ZCL_WINDOW_COVERING_GO_TO_LIFT_PERCENTAGE_CB_ID:
//function go Lift Percentage
NRF_LOG_INFO("GO TO LIFT PERCENTAGE");
ZB_ZCL_WINDOW_COVERING_GET_GO_TO_LIFT_PERCENTAGE_REQ(bufid, lift_percentage, status);
value = lift_percentage->percentage_lift_value;
NRF_LOG_INFO("level control attribute setting to %hd", value);
Do I have to do any other operations?
I would appreciate your efforts for a quick response at the earliest.
Kindly regards,
Shivaprasad.