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:
PK Chan 2020-03-10 18:09:51 +08:00 committed by Jukka Rissanen
commit ba8bb44661

View file

@ -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;
}