mirror of
https://github.com/FreeRTOS/FreeRTOS-Kernel.git
synced 2025-10-27 15:56:14 -04:00
Hygiene fix in MQTT demos to log warning for unexpected PINGRESP packet event (#366)
Update MQTT demos to log warning on receiving PINGRESP packet in event callback
This commit is contained in:
parent
559772a4db
commit
832a797c69
6 changed files with 25 additions and 9 deletions
|
|
@ -469,9 +469,9 @@ void vHandleOtherIncomingPacket( MQTTPacketInfo_t * pxPacketInfo,
|
|||
case MQTT_PACKET_TYPE_PINGRESP:
|
||||
|
||||
/* Nothing to be done from application as library handles
|
||||
* PINGRESP. */
|
||||
* PINGRESP with the use of MQTT_ProcessLoop API function. */
|
||||
LogWarn( ( "PINGRESP should not be handled by the application "
|
||||
"callback when using MQTT_ProcessLoop.\n\n" ) );
|
||||
"callback when using MQTT_ProcessLoop.\n" ) );
|
||||
break;
|
||||
|
||||
case MQTT_PACKET_TYPE_PUBACK:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue