Small change to actually print Vbat

This commit is contained in:
Pierrick C 2018-08-17 23:55:01 +02:00
parent fcc9c2f15b
commit 238f5d0160

View File

@ -72,7 +72,7 @@ def on_message(client, userdata, msg):
subtopics = top.split("/")
#Display atmospheric data from BME280 sensor
if subtopics[0] == "BME":
if subtopics[0] == "BME" or subtopics[0] == "SYS":
payload = msg.payload.decode()
val = json.loads(payload)