samples: net: mqtt_publisher: demo for ping request and response
Once the MQTT ping response has been received from the server, the application is then notified with the MQTT_EVT_PINGRESP event. Signed-off-by: PK Chan <pak.kee.chan@nordicsemi.no>
This commit is contained in:
parent
9f9e00a62d
commit
ba8bb44661
1 changed files with 4 additions and 0 deletions
|
@ -192,6 +192,10 @@ void mqtt_evt_handler(struct mqtt_client *const client,
|
|||
|
||||
break;
|
||||
|
||||
case MQTT_EVT_PINGRESP:
|
||||
LOG_INF("PINGRESP packet");
|
||||
break;
|
||||
|
||||
default:
|
||||
break;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue