Lines Matching refs:gw_id
68 char gw_id; member
326 LOG_DBG("Destroying gateway %d", gw->gw_id); in mqtt_sn_gw_destroy()
343 static struct mqtt_sn_gateway *mqtt_sn_gw_create(uint8_t gw_id, short duration, in mqtt_sn_gw_create() argument
360 gw->gw_id = gw_id; in mqtt_sn_gw_create()
371 static struct mqtt_sn_gateway *mqtt_sn_gw_find_by_id(struct mqtt_sn_client *client, uint16_t gw_id) in mqtt_sn_gw_find_by_id() argument
376 if (gw->gw_id == gw_id) { in mqtt_sn_gw_find_by_id()
595 response.params.gwinfo.gw_id = gw->gw_id; in mqtt_sn_do_gwinfo()
857 LOG_DBG("Removing non-responsive GW 0x%08x", gw->gw_id); in process_ping()
929 LOG_DBG("Checking if GW 0x%02x is old", gw->gw_id); in process_advertise()
931 LOG_DBG("Removing non-responsive GW 0x%08x", gw->gw_id); in process_advertise()
1046 int mqtt_sn_add_gw(struct mqtt_sn_client *client, uint8_t gw_id, struct mqtt_sn_data gw_addr) in mqtt_sn_add_gw() argument
1050 gw = mqtt_sn_gw_find_by_id(client, gw_id); in mqtt_sn_add_gw()
1056 gw = mqtt_sn_gw_create(gw_id, -1, gw_addr); in mqtt_sn_add_gw()
1273 gw = mqtt_sn_gw_find_by_id(client, p->gw_id); in handle_advertise()
1276 LOG_DBG("Creating GW 0x%02x with duration %d", p->gw_id, p->duration); in handle_advertise()
1277 gw = mqtt_sn_gw_create(p->gw_id, p->duration, rx_addr); in handle_advertise()
1283 LOG_DBG("Updating timer for GW 0x%02x with duration %d", p->gw_id, p->duration); in handle_advertise()
1332 gw = mqtt_sn_gw_create(p->gw_id, -1, rx_addr); in handle_gwinfo()