Currently I'm creating a IoT Hub device that reads a sensor multiple times each second. I would like to achieve 3 to 4 reading each second.
The sensor returns just a true or false and when its true I want a time-stamp and other information send to the Azure IoT hub. The device is a Raspberry Pi 3
I would like some advice. What would be the best language to create this program with? Can i send the messages every time or would this be to slow?
I made a sample program with python and used a GPIO event to detect if the pin is changed. And when it is changed, send a message to IoT hub. But i have a feeling this isn't fast enough?
Thank you for your time in advance! I hope you can give me some advice