Azure / azure-iot-sdk-c

A C99 SDK for connecting devices to Microsoft Azure IoT services
https://azure.github.io/azure-iot-sdk-c
Other
585 stars 739 forks source link

Is it possible to connect a real robot (as a device client) to an IoT hub? #2572

Closed addy1997 closed 6 months ago

addy1997 commented 6 months ago

Hi there,

I am working on a project to send data from robotic arm to my IoT hub. I understand that the robot in this case behaves as device client that needs to connect to the IoT hub. How do I send data from the robot to the hub?

Do I need to write a code (assuming the robot as a device client similar to the pnp thermostat)?

ewertons commented 6 months ago

Hi @addy1997 , thanks for sharing about your project. You can perfectly send data from your robot to the Azure IoT Hub. Writing some code will be necessary, but to better guide you, it's always good to share details about the platform you are using (which microcontroller or CPU and operating system, compilers or development IDE). Could you share those details? Thanks, Azure IoT SDK Team.

addy1997 commented 6 months ago

Hi @ewertons,

Thanks for your reply. So, I want to send the data from Panda robotic arm to the IoT hub. I am using Ubuntu 20.04 OS and Visual Studio code for compilation. Azure iot Explorer and CLI are already installed on my device and I used Azure-iot-sdk to send telemetry data from my device client to the IoT hub.

Here are some queries I have:

  1. Assuming the robot as a device client, how do I develop a production-ready code to send data from the robot to the hub?
  2. Can I use the pnp sample to develop the code for the robot?

Do you need additional information?

addy1997 commented 6 months ago

Hey @ewertons,

Could you help?