We now have all of the components for the rink heater built. The next step is to test it:
- We should already have the gateway code on the ESP32 LoRa board. Ensure that the code is running by restarting the ESP32 LoRa microcontroller.
- 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)
- 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.
- Since the simulated temperature values are random, there is no set time when num_cycles reaches max_cycles ...