Lines Matching refs:response

539 	struct mqtt_sn_param response = {.type = MQTT_SN_MSG_TYPE_GWINFO};  in mqtt_sn_do_gwinfo()  local
550 response.params.gwinfo.gw_id = gw->gw_id; in mqtt_sn_do_gwinfo()
553 response.params.gwinfo.gw_add = addr; in mqtt_sn_do_gwinfo()
555 encode_and_send(client, &response, client->radius_gwinfo); in mqtt_sn_do_gwinfo()
1220 struct mqtt_sn_param response = {.type = MQTT_SN_MSG_TYPE_WILLTOPIC}; in handle_willtopicreq() local
1222 response.params.willtopic.qos = client->will_qos; in handle_willtopicreq()
1223 response.params.willtopic.retain = client->will_retain; in handle_willtopicreq()
1224 response.params.willtopic.topic.data = client->will_topic.data; in handle_willtopicreq()
1225 response.params.willtopic.topic.size = client->will_topic.size; in handle_willtopicreq()
1227 encode_and_send(client, &response, 0); in handle_willtopicreq()
1232 struct mqtt_sn_param response = {.type = MQTT_SN_MSG_TYPE_WILLMSG}; in handle_willmsgreq() local
1234 response.params.willmsg.msg.data = client->will_msg.data; in handle_willmsgreq()
1235 response.params.willmsg.msg.size = client->will_msg.size; in handle_willmsgreq()
1237 encode_and_send(client, &response, 0); in handle_willmsgreq()
1242 struct mqtt_sn_param response = {.type = MQTT_SN_MSG_TYPE_REGACK}; in handle_register() local
1256 response.params.regack.ret_code = MQTT_SN_CODE_ACCEPTED; in handle_register()
1257 response.params.regack.topic_id = p->topic_id; in handle_register()
1258 response.params.regack.msg_id = p->msg_id; in handle_register()
1260 encode_and_send(client, &response, 0); in handle_register()
1283 struct mqtt_sn_param response; in handle_publish() local
1290 response.type = MQTT_SN_MSG_TYPE_PUBACK; in handle_publish()
1291 response.params.puback.topic_id = p->topic_id; in handle_publish()
1292 response.params.puback.msg_id = p->msg_id; in handle_publish()
1293 response.params.puback.ret_code = MQTT_SN_CODE_ACCEPTED; in handle_publish()
1295 encode_and_send(client, &response, 0); in handle_publish()
1297 response.type = MQTT_SN_MSG_TYPE_PUBREC; in handle_publish()
1298 response.params.pubrec.msg_id = p->msg_id; in handle_publish()
1300 encode_and_send(client, &response, 0); in handle_publish()
1322 struct mqtt_sn_param response = {.type = MQTT_SN_MSG_TYPE_PUBREL}; in handle_pubrec() local
1333 response.params.pubrel.msg_id = p->msg_id; in handle_pubrec()
1335 encode_and_send(client, &response, 0); in handle_pubrec()
1340 struct mqtt_sn_param response = {.type = MQTT_SN_MSG_TYPE_PUBCOMP}; in handle_pubrel() local
1342 response.params.pubcomp.msg_id = p->msg_id; in handle_pubrel()
1344 encode_and_send(client, &response, 0); in handle_pubrel()
1391 struct mqtt_sn_param response = {.type = MQTT_SN_MSG_TYPE_PINGRESP}; in handle_pingreq() local
1393 encode_and_send(client, &response, 0); in handle_pingreq()