I am trying to trigger an Azure Function with a C# script to send a message to a device (a simple ON/OFF or HIGH/LOW). Does anyone have an such sample or can point me to such snippets?
Thanks in advance !
I am trying to trigger an Azure Function with a C# script to send a message to a device (a simple ON/OFF or HIGH/LOW). Does anyone have an such sample or can point me to such snippets?
Thanks in advance !
If you want to execute a function arbitrarily which would send a message to IoT Hub you can simply use a sample template of Azure HTTP Triggered (while creating a function app on VS Code you would get a sample template) and inside the body of the function you can write a code which would send the data to IoT Hub.