简体   繁体   中英

Timer on IoT Edge module

I have a requirement to run a task every n seconds to fetch some data using REST API on IoT Edge.

My first thought was to create a C# Azure IoT Edge module and have a timer on it to run the task. Something similar to SimulatedTemperatureSensor project. But, instead of sending fake data every 5 seconds, I will do my API requests. I downloaded this project and started changing it. But it has many dependencies on other project and has a lot than what I need.

Is there a simpler project or tutorial that I can use?

See this example here . That one sends out a message every few seconds but just the same way you can implement whatever logic you'd like.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM