Iansmith123
Posts: 1
Joined: Mon Mar 13, 2017 12:36 pm

Serial data connection to azure

Mon Mar 13, 2017 12:55 pm

hi all

I'm new to raspberry pi, and I've been working on getting connected to the azure iot hub.

I have a sensor attached to a device which is sending data to the Pi over serial. The Pi is attached to the sensor via USB or UART (doesn't matter I am happy to use either)

I am trying to develop a python script to read and send this incoming data to Azure IoT hub. But cannot understand how to send the incoming serial data to Azure IoT.

As I am not able to understand how incoming serial data is being processed and sent to Azure, so how can I use the data which is incoming from the serial port and send it to Azure IoT hub.

Any help thanks?

User avatar
Gert van Loo
Posts: 2487
Joined: Tue Aug 02, 2011 7:27 am
Contact: Website

Re: Serial data connection to azure

Tue Mar 14, 2017 8:09 am

Ian,
I know nothing about USB but if you want example code of how to send/receive using a UART from Python have a look at the
drivers for my gertbot product. You can find them here: http://www.gertbot.com/updates.html

Return to “Troubleshooting”