kopia lustrzana https://github.com/pimoroni/pimoroni-pico
Update enviro_all_mqtt.py
rodzic
d8402f48bd
commit
1adc320a78
|
@ -97,9 +97,10 @@ mqtt_time = 0
|
||||||
mqtt_success = False
|
mqtt_success = False
|
||||||
e = "Wait a minute"
|
e = "Wait a minute"
|
||||||
|
|
||||||
|
# connect to wifi
|
||||||
|
uasyncio.get_event_loop().run_until_complete(network_manager.client(WIFI_CONFIG.SSID, WIFI_CONFIG.PSK))
|
||||||
|
|
||||||
while True:
|
while True:
|
||||||
# connect to wifi
|
|
||||||
uasyncio.get_event_loop().run_until_complete(network_manager.client(WIFI_CONFIG.SSID, WIFI_CONFIG.PSK))
|
|
||||||
|
|
||||||
# read BME688
|
# read BME688
|
||||||
temperature, pressure, humidity, gas, status, _, _ = bme.read()
|
temperature, pressure, humidity, gas, status, _, _ = bme.read()
|
||||||
|
|
Ładowanie…
Reference in New Issue