You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi, first of all thanks for the great lib.
I'm trying to find a way to check if the received message have the Retained Flag set.
In other words i need to recognize if the received message is a retained message or a standard (not retained) one.
I've check onMessageAdvanced() but i don't see a way to get the information i need.
Am i missing something or actually this information is not available via the callback method ?
TIA
The text was updated successfully, but these errors were encountered:
After checking the src files i can confirm the 'retained' flag of the incoming message is not returned by onMessage() or onMessageAdvanced.
In source file MQTTClient.cpp the function MQTTClientHandler() receives a lwmqtt_message_t parameter.
This struct, defined in lwmqtt/lwmqtt.h contains the retained message flag:
Hi, first of all thanks for the great lib.
I'm trying to find a way to check if the received message have the Retained Flag set.
In other words i need to recognize if the received message is a retained message or a standard (not retained) one.
I've check
onMessageAdvanced()
but i don't see a way to get the information i need.Am i missing something or actually this information is not available via the callback method ?
TIA
The text was updated successfully, but these errors were encountered: