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
{{ message }}
This repository has been archived by the owner on Aug 8, 2024. It is now read-only.
I have managed to get the MQTT_publish_sub example working on my W5500-evb-pico.
I am now trying to get to the point where I can parse an incoming message to the topic I am subscribed to, The incoming message is correctly printed to the serial port with the line:
printf("%.*s\n", (uint32_t)message->payloadlen, (uint8_t *)message->payload);
However I am unable to work out how to convert the payload into a string. I'm sure it's simple but the use of void pointers and the typedef MQTTMessage is confusing me. Is anyone able to help?
Many thanks.
The text was updated successfully, but these errors were encountered:
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
I have managed to get the MQTT_publish_sub example working on my W5500-evb-pico.
I am now trying to get to the point where I can parse an incoming message to the topic I am subscribed to, The incoming message is correctly printed to the serial port with the line:
printf("%.*s\n", (uint32_t)message->payloadlen, (uint8_t *)message->payload);
However I am unable to work out how to convert the payload into a string. I'm sure it's simple but the use of void pointers and the typedef MQTTMessage is confusing me. Is anyone able to help?
Many thanks.
The text was updated successfully, but these errors were encountered: