Lines Matching refs:evt

26 	struct mqtt_evt evt;  in mqtt_handle_packet()  local
29 evt.result = 0; in mqtt_handle_packet()
35 evt.type = MQTT_EVT_CONNACK; in mqtt_handle_packet()
36 err_code = connect_ack_decode(client, buf, &evt.param.connack); in mqtt_handle_packet()
39 evt.param.connack.return_code); in mqtt_handle_packet()
41 if (evt.param.connack.return_code == in mqtt_handle_packet()
49 evt.result = evt.param.connack.return_code; in mqtt_handle_packet()
51 evt.result = err_code; in mqtt_handle_packet()
59 evt.type = MQTT_EVT_PUBLISH; in mqtt_handle_packet()
61 &evt.param.publish); in mqtt_handle_packet()
62 evt.result = err_code; in mqtt_handle_packet()
65 evt.param.publish.message.payload.len; in mqtt_handle_packet()
68 evt.param.publish.message.topic.qos, in mqtt_handle_packet()
69 evt.param.publish.message.payload.len, in mqtt_handle_packet()
70 evt.param.publish.message.topic.topic.size); in mqtt_handle_packet()
77 evt.type = MQTT_EVT_PUBACK; in mqtt_handle_packet()
78 err_code = publish_ack_decode(buf, &evt.param.puback); in mqtt_handle_packet()
79 evt.result = err_code; in mqtt_handle_packet()
85 evt.type = MQTT_EVT_PUBREC; in mqtt_handle_packet()
86 err_code = publish_receive_decode(buf, &evt.param.pubrec); in mqtt_handle_packet()
87 evt.result = err_code; in mqtt_handle_packet()
93 evt.type = MQTT_EVT_PUBREL; in mqtt_handle_packet()
94 err_code = publish_release_decode(buf, &evt.param.pubrel); in mqtt_handle_packet()
95 evt.result = err_code; in mqtt_handle_packet()
101 evt.type = MQTT_EVT_PUBCOMP; in mqtt_handle_packet()
102 err_code = publish_complete_decode(buf, &evt.param.pubcomp); in mqtt_handle_packet()
103 evt.result = err_code; in mqtt_handle_packet()
109 evt.type = MQTT_EVT_SUBACK; in mqtt_handle_packet()
110 err_code = subscribe_ack_decode(buf, &evt.param.suback); in mqtt_handle_packet()
111 evt.result = err_code; in mqtt_handle_packet()
117 evt.type = MQTT_EVT_UNSUBACK; in mqtt_handle_packet()
118 err_code = unsubscribe_ack_decode(buf, &evt.param.unsuback); in mqtt_handle_packet()
119 evt.result = err_code; in mqtt_handle_packet()
132 evt.type = MQTT_EVT_PINGRESP; in mqtt_handle_packet()
142 event_notify(client, &evt); in mqtt_handle_packet()