mhanline / tilt-mqtt-gateway

Tilt Hydrometer Bluetooth to Google Cloud IoT Core (MQTT)
2 stars 2 forks source link

Fix Settings incorrect or missing a cyper for SSL message #15

Open mhanline opened 4 years ago

mhanline commented 4 years ago

Upon first boot, intermittently I get: Settings incorrect or missing a cyper for SSL Connect with mqtt.2030.ltsapis.goog:8883 ClientId: projects/projectid/locations/us-central1/registries/iot-core-tilt-gateway/devices/mhanl-tilt01 Waiting 60 seconds, retry will likely fail

mhanline commented 4 years ago

Seems like after an unclean disconnect, IoT core doesn't allow multiple connections from same device ID. Stackdriver log: The connection was closed because there is another active connection with the same device ID

May look into setup/teardown after MQTT send, or something more elaborate.

mhanline commented 4 years ago

[E][ssl_client.cpp:33] _handle_error(): [start_ssl_client():190]: (-32512) SSL - Memory allocation failed [E][WiFiClientSecure.cpp:132] connect(): start_ssl_client: -32512