Is it possible to use Azure Functions to simulate a device connected to an Azure IoT Hub? (So far I have only found samples of Azure Functions that process data received by the hub.)
More precisely, the Azure Functions should perform the following two tasks, as if it were a device:
Periodically send telemetry data to the IoT Hub.
Get triggered on device twin property change, and do something with the new device twin properties.
Any code snippets or pointers to samples would be helpful!
Yes, it can be done using the following functions: