Hello,
Starting with the example of mqtt_sn_client_publisher in the nRF5 SDK for Thread and Zigbee and I want to publish an array of data like this one
uint8_t readInfo[] = {0xBB, 0x00, 0x03, 0x00, 0x01, 0x00, 0x04, 0x7E};
in a MQTT topic. For doing so, I`m using the function which is used in the example:
mqttsn_client_publish(&m_client, m_topic.topic_id, &readInfo, sizeof(readInfo), &m_msg_id);
using my array and his lenght as parameters. The code compiles but in the line where I call the function, segger shows a warning about incompatible pointer types.
I can´t check if the broker receives the data because I`ve not the gateway currently set up.
Could anyone provide some example code or an explanation of how should I do to publish messages with more than one byte??
Thanks!
Alex