I had the issue that the connection within teddycloud to boxine was most of the time red. I had sometimes to wait more than a minute to get a green connection.
When I changed the log level in teddycloud I saw that the box was sending a request with handleCloudTime
Normally it looks like this:
INFO |handler_cloud.c:0041:handleCloudTime| >> respond with current time
INFO |mqtt.c:0690:mqtt_init_box| Skipping client ‘Toniebox’ (cn: ‘default’)
INFO |cloud_request.c:0200:web_request| Connecting to HTTP server prod.de.tbs.toys:443…
INFO |cloud_request.c:0252:web_request| trying IP: 3.74.99.150
INFO |cloud_request.c:0200:web_request| Connecting to HTTP server prod.de.tbs.toys:443…
INFO |cloud_request.c:0252:web_request| trying IP: 3.74.99.150
INFO |cloud_request.c:0486:web_request| Response: ‘1746731984’
But in my case there were hundreds of log outputs like this before the time response was printed out. Then the boxine sign went to green:
TRACE|mutex_manager.c:0108:mutex_lock| >mutex locked 5
TRACE|mutex_manager.c:0114:mutex_unlock| <unlocking mutex 5
TRACE|mutex_manager.c:0131:mutex_unlock| <mutex unlocked 5
TRACE|mutex_manager.c:0104:mutex_lock| >locking mutex 6
TRACE|mutex_manager.c:0108:mutex_lock| >mutex locked 6
TRACE|mutex_manager.c:0114:mutex_unlock| <unlocking mutex 6
TRACE|mutex_manager.c:0131:mutex_unlock| <mutex unlocked 6
TRACE|mutex_manager.c:0104:mutex_lock| >locking mutex 5
TRACE|mutex_manager.c:0108:mutex_lock| >mutex locked 5
TRACE|mutex_manager.c:0114:mutex_unlock| <unlocking mutex 5
TRACE|mutex_manager.c:0131:mutex_unlock| <mutex unlocked 5
TRACE|mutex_manager.c:0104:mutex_lock| >locking mutex 6
TRACE|mutex_manager.c:0108:mutex_lock| >mutex locked 6
TRACE|mutex_manager.c:0114:mutex_unlock| <unlocking mutex 6
TRACE|mutex_manager.c:0131:mutex_unlock| <mutex unlocked 6
TRACE|mutex_manager.c:0104:mutex_lock| >locking mutex 5
TRACE|mutex_manager.c:0108:mutex_lock| >mutex locked 5
TRACE|mutex_manager.c:0114:mutex_unlock| <unlocking mutex 5
TRACE|mutex_manager.c:0131:mutex_unlock| <mutex unlocked 5
TRACE|mutex_manager.c:0104:mutex_lock| >locking mutex 6
TRACE|mutex_manager.c:0108:mutex_lock| >mutex locked 6
What is this log output saying? It seems to work since I deactivated mqtt. But i would prefer to enable mqtt. How can I fix this issue?