Telemetry data has special character

Anoop Chandran 25 Reputation points
2023-06-09T16:30:01.9133333+00:00

Hi,

I am currently working on the "iot-middleware-freertos-samples" to implement MQTT.

I am sending a JSON payload to the Azure IoT hub but in the Azure console, I am seining the payloads have a special character "" in them.

Below is the payload which I am sending:

{"PID":"FDI","SN":"SMA-A-006","Device_id":"SMA-A-006","FW ID":"ELOP","File Name":"ELOP040_C5W_SWNL15_HW900_Q_UPD.hex","File size":"8048","SW ver":"1.0","DS":"Success"}

Sharing the snapshot from Azure console, PFA.

I am sending the payload using the API "AzureIoTHubClient_SendTelemetry".

Regards

AnoopScreenshot (129)

Azure IoT Hub
Azure IoT Hub
An Azure service that enables bidirectional communication between internet of things (IoT) devices and applications.
1,273 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Anoop Chandran 25 Reputation points
    2023-06-12T05:14:01.42+00:00

    Hi,

    I have changed the "sampleazureiotMESSAGE_CONTENT_TYPE" value to "application%2Fjson" now it is working.

    Regards

    Anoop


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.