File tree Expand file tree Collapse file tree 2 files changed +6
-3
lines changed
PyPortal_Azure_Plant_Monitor Expand file tree Collapse file tree 2 files changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -56,7 +56,7 @@ def __init__(self, is_celsius):
56
56
self .temp_label .y = 65
57
57
self ._text_group .append (self .temp_label )
58
58
59
- self .temp_text = Label (self .data_font , max_glyphs = 10 , text = "" )
59
+ self .temp_text = Label (self .data_font , max_glyphs = 10 )
60
60
self .temp_text .x = 200
61
61
self .temp_text .y = 85
62
62
self ._text_group .append (self .temp_text )
@@ -66,12 +66,12 @@ def __init__(self, is_celsius):
66
66
self .moisture_label .y = 135
67
67
self ._text_group .append (self .moisture_label )
68
68
69
- self .moisture_text = Label (self .data_font , max_glyphs = 10 , text = "" )
69
+ self .moisture_text = Label (self .data_font , max_glyphs = 10 )
70
70
self .moisture_text .x = 200
71
71
self .moisture_text .y = 175
72
72
self ._text_group .append (self .moisture_text )
73
73
74
- self .azure_status_text = Label (self .main_font , max_glyphs = 15 , text = "" )
74
+ self .azure_status_text = Label (self .main_font , max_glyphs = 15 )
75
75
self .azure_status_text .x = 65
76
76
self .azure_status_text .y = 225
77
77
self ._text_group .append (self .azure_status_text )
Original file line number Diff line number Diff line change 42
42
# Set up the WiFi manager with a status light to show the WiFi connection status
43
43
status_light = neopixel .NeoPixel (board .NEOPIXEL , 1 , brightness = 0.2 )
44
44
wifi = adafruit_esp32spi_wifimanager .ESPSPI_WiFiManager (esp , secrets , status_light )
45
+ print ("WiFi connecting..." )
45
46
wifi .connect ()
47
+ print ("WiFi connected!" )
46
48
47
49
# Time setup, needed to authenticate with Azure IoT Central
48
50
ntp = NTP (esp )
49
51
while not ntp .valid_time :
52
+ print ("Failed to obtain time, retrying in 5 seconds..." )
50
53
time .sleep (5 )
51
54
ntp .set_time ()
52
55
You can’t perform that action at this time.
0 commit comments