To add to the comment of @AshokPeddakotla-MSFT , you also asked for a way to connect the Pi to IoT Hub without a sensor. That is completely possible and Microsoft has a sample for it on GitHub. You can find it here. It sends telemetry to IoT Hub without needing any sensors.
Raspberry pi/Iot Hub
Walter Hill
1
Reputation point Microsoft Employee
I am having issues connecting raspberry pi 4(canakit) to IoT Hub. the online tutorials don't help much.
any way to connect the pi to IoT Hub without initially having a sensor? I prefer python
thanks in advance
Azure IoT Hub
Azure IoT Hub
An Azure service that enables bidirectional communication between internet of things (IoT) devices and applications.
1,274 questions
1 answer
Sort by: Most helpful
-
Matthijs van der Veer 4,376 Reputation points MVP Volunteer Moderator
2021-04-08T13:54:16.54+00:00