|
|
@ -633,15 +633,16 @@ def main(): |
|
|
|
victron_mqtt_keep_alive(mqtt_client) |
|
|
|
victron_mqtt_keep_alive(mqtt_client) |
|
|
|
|
|
|
|
|
|
|
|
# Get system time for keepalive delay loop |
|
|
|
# Get system time for keepalive delay loop |
|
|
|
starttime = time.time() |
|
|
|
#starttime = time.time() |
|
|
|
|
|
|
|
|
|
|
|
while 1 == 1: |
|
|
|
while 1 == 1: |
|
|
|
|
|
|
|
|
|
|
|
# Should be called every 30 seconds to keep Victron Energy Cebo GX awake (keepalive) |
|
|
|
# Should be called every 30 seconds to keep Victron Energy Cebo GX awake (keepalive) |
|
|
|
if time.time() - starttime > 30: |
|
|
|
time.sleep(30) |
|
|
|
|
|
|
|
#if time.time() - starttime > 30: |
|
|
|
#logging.info(f"Keepalive") |
|
|
|
#logging.info(f"Keepalive") |
|
|
|
victron_mqtt_keep_alive(mqtt_client) |
|
|
|
victron_mqtt_keep_alive(mqtt_client) |
|
|
|
starttime = time.time() |
|
|
|
#starttime = time.time() |
|
|
|
|
|
|
|
|
|
|
|
loop_stop() |
|
|
|
loop_stop() |
|
|
|
|
|
|
|
|
|
|
|