Skip to content

Commit 5db06d5

Browse files
committed
Update code.py
1 parent d7f34f6 commit 5db06d5

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

  • PyPortal_Azure_Plant_Monitor

PyPortal_Azure_Plant_Monitor/code.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,7 @@
6666
# Connect to Azure IoT Central
6767
device.connect()
6868

69+
# Hide the splash screen and show the telemetry values
6970
gfx.show_text()
7071

7172
while True:
@@ -87,6 +88,7 @@
8788
"MoistureLevel": moisture_level
8889
}
8990
device.send_telemetry(json.dumps(message))
91+
device.loop()
9092

9193
gfx.display_azure_status('Data sent!')
9294
print('Data sent!')

0 commit comments

Comments
 (0)