Skip to Content
Hands-On Edge Analytics with Azure IoT
book

Hands-On Edge Analytics with Azure IoT

by Colin Dow
May 2020
Intermediate to advanced
262 pages
6h 48m
English
Packt Publishing
Content preview from Hands-On Edge Analytics with Azure IoT

Putting it all together

We now have all of the components for the rink heater built. The next step is to test it:

  1. We should already have the gateway code on the ESP32 LoRa board. Ensure that the code is running by restarting the ESP32 LoRa microcontroller.
  2. Modify the main.py file in the Edge Code project in Atom by commenting out the actual temperature sensor code and removing the commenting on the test() method:
#temperature = dht11.get_temperature()temperature = dht11.get_sim_temperature(temp_threshold) 
  1. Upload the project code from the Edge Code project onto the LoPy/LoPy 4 by clicking on the Upload project to device up arrow button.
  2. Since the simulated temperature values are random, there is no set time when num_cycles reaches max_cycles ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Beginning Azure IoT Edge Computing: Extending the Cloud to the Intelligent Edge

Beginning Azure IoT Edge Computing: Extending the Cloud to the Intelligent Edge

David Jensen

Publisher Resources

ISBN: 9781838829902Supplemental Content