Azure / azure-iot-sdk-csharp

A C# SDK for connecting devices to Microsoft Azure IoT services
Other
457 stars 493 forks source link

How do I send data stored in array (floating type) from my robot to IoT hub? [Technical Question] #3430

Closed addy1997 closed 4 months ago

addy1997 commented 5 months ago

Hello there,

Azure-IoT-Preview This figure shows data received at the IoT hub (a screenshot of Azure Iot preview)

Telemetry-sent-using-SDK This figure shows the telemetry data being sent to the hub.

This data includes:

  1. RobotState (a string data type) - Sent successfully and received at the hub
  2. JointName(an array of string data type) - Sent successfully but received at the hub in System.Single[] form
  3. JointPose(an array of arrays of floating point data) - Not sent successfully and received in System.Single[][] format.

My query: How do I send string and array (multi dimensional) array as telemetry to the hub?

Note: I am reading robot's joint data which is a 1x16 matrix from a CSV file. I'll be happy to provide more details including the code if required.

I'll be thankful for any guidance.

Thanks