Any experience using the Azure IoT JSON writer?

cf_tru_mmu 5 Reputation points
2023-02-21T12:10:31.8566667+00:00

https://github.com/azure-rtos/netxduo/blob/master/addons/azure_iot/docs/azure_rtos_iot_json.md

I've found the library posted above and I was trying to implement the library within my project to create my JSON payload that was to be sent to the cloud. I was previously using the CJSON library which was a very simple library to use however this gave issues within my application and was causing the unit to crash. Hence I wanted to try this library as it was more embedded specific.

What I've tried so far:

User's image

Then tried using the MQTT client publish function to send the data which I've added to the buffer and also print it to the Segger_RTT viewer:

User's image

However nothing is sent or printed to the console, a push in the right direction would be greatly appreciated as I'm new to using RTOS and is probably something I've not understood from the documentation.

Thanks,

CF.

Azure RTOS
Azure RTOS
An Azure embedded development suite including a small but powerful operating system for resource-constrained devices.
331 questions
0 comments No comments
{count} vote

1 answer

Sort by: Most helpful
  1. QuantumCache 20,266 Reputation points
    2023-02-23T06:48:16.3166667+00:00

    Hello cf_tru_mmu,

    What is the size of the payload? did you try a smaller payload size, just wanted to make sure if this is not the issue?

    You can also refer to the Connect a Renesas RX65N Cloud Kit to Azure IoT Central quickstart for more information on how to connect a Renesas RX65N Cloud kit device to Azure IoT and send telemetry.

    Community SME's on this topic or our team will review your scenario and circle back at the possible earliest time. 


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.