fixed a but in memory reporting
This commit is contained in:
@@ -79,9 +79,10 @@ def publish_to_mqtt (cpu_load, cpu_temp, used_space, voltage, sys_clock_speed, s
|
||||
time.sleep(1)
|
||||
client.publish(mqtt_topic_prefix+"/"+hostname+"/swap", swap, qos=1)
|
||||
time.sleep(1)
|
||||
client.publish(mqtt_topic_prefix+"/"+hostname+"/swap", memory, qos=1)
|
||||
client.publish(mqtt_topic_prefix+"/"+hostname+"/memory", memory, qos=1)
|
||||
time.sleep(1)
|
||||
client.publish(mqtt_topic_prefix+"/"+hostname+"/sys_clock_speed", sys_clock_speed, qos=1)
|
||||
time.sleep(1)
|
||||
#disconect from mqtt server
|
||||
client.disconnect()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user