Skip to content
This repository has been archived by the owner on Jan 6, 2023. It is now read-only.

takes very long time to connect on ESP32 #217

Open
shubhamsharmaa001 opened this issue Feb 24, 2021 · 0 comments
Open

takes very long time to connect on ESP32 #217

shubhamsharmaa001 opened this issue Feb 24, 2021 · 0 comments

Comments

@shubhamsharmaa001
Copy link

shubhamsharmaa001 commented Feb 24, 2021

example used - Esp32-lwmqtt

These are the logs of my esp32 . Number 2 to 15 in the logs represent retries to connect to server.

Why is it taking so long to connect??

Note - (Number 1 retry and logs before it are missing in these logs)

16:42:33.078 -> ....
16:42:33.078 -> checking wifi...
16:42:33.117 -> connecting...1614165152
16:42:34.121 -> Refreshing JWT
16:42:34.611 -> 2
16:42:34.611 -> [V][ssl_client.cpp:56] start_ssl_client(): Free internal heap before TLS 246500
16:42:34.658 -> [V][ssl_client.cpp:58] start_ssl_client(): Starting socket
16:42:34.847 -> [V][ssl_client.cpp:93] start_ssl_client(): Seeding the random number generator
16:42:34.847 -> [V][ssl_client.cpp:102] start_ssl_client(): Setting up the SSL/TLS structure...
16:42:34.847 -> [I][ssl_client.cpp:156] start_ssl_client(): WARNING: Use certificates for a more secure communication!
16:42:34.847 -> [V][ssl_client.cpp:180] start_ssl_client(): Setting hostname for TLS session...
16:42:34.881 -> [V][ssl_client.cpp:195] start_ssl_client(): Performing the SSL/TLS handshake...
16:42:36.796 -> [V][ssl_client.cpp:216] start_ssl_client(): Verifying peer X.509 certificate...
16:42:36.796 -> [V][ssl_client.cpp:225] start_ssl_client(): Certificate verified.
16:42:36.796 -> [V][ssl_client.cpp:240] start_ssl_client(): Free internal heap after TLS 207572
16:42:36.840 -> [V][ssl_client.cpp:279] send_ssl_data(): Writing HTTP request...
16:42:37.283 -> [V][ssl_client.cpp:248] stop_ssl_socket(): Cleaning SSL connection.
16:42:37.319 -> not connected
16:42:37.319 -> Settings incorrect or missing a cyper for SSL
16:42:37.319 -> Connect with mqtt.2030.ltsapis.goog:8883
16:42:37.319 -> ClientId: projects/kts01-water-level/locations/europe-west1/registries/iot-sample-registry/devices/iot-sample-device
16:42:37.319 -> Waiting 60 seconds, retry will likely fail
16:42:38.324 -> ....
16:42:38.324 -> checking wifi...
16:42:38.324 -> connecting...1614165157
16:42:39.326 -> Refreshing JWT
16:42:39.848 -> 3
16:42:39.848 -> [V][ssl_client.cpp:56] start_ssl_client(): Free internal heap before TLS 246060
16:42:39.848 -> [V][ssl_client.cpp:58] start_ssl_client(): Starting socket
16:42:40.048 -> [V][ssl_client.cpp:93] start_ssl_client(): Seeding the random number generator
16:42:40.048 -> [V][ssl_client.cpp:102] start_ssl_client(): Setting up the SSL/TLS structure...
16:42:40.091 -> [I][ssl_client.cpp:156] start_ssl_client(): WARNING: Use certificates for a more secure communication!
16:42:40.091 -> [V][ssl_client.cpp:180] start_ssl_client(): Setting hostname for TLS session...
16:42:40.091 -> [V][ssl_client.cpp:195] start_ssl_client(): Performing the SSL/TLS handshake...
16:42:42.028 -> [V][ssl_client.cpp:216] start_ssl_client(): Verifying peer X.509 certificate...
16:42:42.028 -> [V][ssl_client.cpp:225] start_ssl_client(): Certificate verified.
16:42:42.028 -> [V][ssl_client.cpp:240] start_ssl_client(): Free internal heap after TLS 207164
16:42:42.028 -> [V][ssl_client.cpp:279] send_ssl_data(): Writing HTTP request...
16:42:43.005 -> [V][ssl_client.cpp:248] stop_ssl_socket(): Cleaning SSL connection.
16:42:43.041 -> not connected
16:42:43.041 -> Settings incorrect or missing a cyper for SSL
16:42:43.041 -> Connect with mqtt.2030.ltsapis.goog:8883
16:42:43.041 -> ClientId: projects/kts01-water-level/locations/europe-west1/registries/iot-sample-registry/devices/iot-sample-device
16:42:43.041 -> Waiting 60 seconds, retry will likely fail
16:42:44.045 -> ....
16:42:44.045 -> checking wifi...
16:42:44.045 -> connecting...1614165163
16:42:45.063 -> Refreshing JWT
16:42:45.599 -> 4
16:42:45.599 -> [V][ssl_client.cpp:56] start_ssl_client(): Free internal heap before TLS 245864
16:42:45.599 -> [V][ssl_client.cpp:58] start_ssl_client(): Starting socket
16:42:45.799 -> [V][ssl_client.cpp:93] start_ssl_client(): Seeding the random number generator
16:42:45.799 -> [V][ssl_client.cpp:102] start_ssl_client(): Setting up the SSL/TLS structure...
16:42:45.799 -> [I][ssl_client.cpp:156] start_ssl_client(): WARNING: Use certificates for a more secure communication!
16:42:45.841 -> [V][ssl_client.cpp:180] start_ssl_client(): Setting hostname for TLS session...
16:42:45.841 -> [V][ssl_client.cpp:195] start_ssl_client(): Performing the SSL/TLS handshake...
16:42:47.794 -> [V][ssl_client.cpp:216] start_ssl_client(): Verifying peer X.509 certificate...
16:42:47.794 -> [V][ssl_client.cpp:225] start_ssl_client(): Certificate verified.
16:42:47.794 -> [V][ssl_client.cpp:240] start_ssl_client(): Free internal heap after TLS 206980
16:42:47.794 -> [V][ssl_client.cpp:279] send_ssl_data(): Writing HTTP request...
16:42:48.753 -> connected
16:42:48.753 ->
16:42:48.753 -> Library connected!
16:42:48.753 -> [V][ssl_client.cpp:279] send_ssl_data(): Writing HTTP request...
16:42:48.955 -> [V][ssl_client.cpp:279] send_ssl_data(): Writing HTTP request...
16:42:49.194 -> [V][ssl_client.cpp:279] send_ssl_data(): Writing HTTP request...
16:42:49.194 -> [V][ssl_client.cpp:279] send_ssl_data(): Writing HTTP request...
16:42:49.194 -> Error[V][ssl_client.cpp:279] send_ssl_data(): Writing HTTP request...
16:42:49.194 -> 1
16:42:49.194 -> incoming: /devices/iot-sample-device/config -
16:42:49.194 -> [V][ssl_client.cpp:279] send_ssl_data(): Writing HTTP request...
16:42:50.182 -> [V][ssl_client.cpp:279] send_ssl_data(): Writing HTTP request...
16:42:50.182 -> 1
16:42:51.172 -> [V][ssl_client.cpp:279] send_ssl_data(): Writing HTTP request...
16:42:51.209 -> 1
16:42:52.194 -> [V][ssl_client.cpp:279] send_ssl_data(): Writing HTTP request...
16:42:52.194 -> 1
16:42:53.203 -> [V][ssl_client.cpp:279] send_ssl_data(): Writing HTTP request...
16:42:53.203 -> 1
16:42:54.230 -> [V][ssl_client.cpp:279] send_ssl_data(): Writing HTTP request...
16:42:54.230 -> 1
16:42:55.217 -> [V][ssl_client.cpp:279] send_ssl_data(): Writing HTTP request...
16:42:55.217 -> 1
16:53:33.635 -> [W][esp32-hal-psram.c:30] psramInit(): PSRAM init failed!
16:53:33.677 -> Starting wifi
16:53:33.753 -> [D][WiFiGeneric.cpp:337] _eventCallback(): Event: 0 - WIFI_READY
16:53:33.753 -> [D][WiFiGeneric.cpp:337] _eventCallback(): Event: 2 - STA_START
16:53:33.753 -> Connecting to WiFi
16:53:34.027 -> [D][WiFiGeneric.cpp:337] _eventCallback(): Event: 4 - STA_CONNECTED
16:53:34.027 -> [D][WiFiGeneric.cpp:337] _eventCallback(): Event: 7 - STA_GOT_IP
16:53:34.027 -> [D][WiFiGeneric.cpp:381] _eventCallback(): STA IP: 192.168.0.105, MASK: 255.255.255.0, GW: 192.168.0.1
16:53:34.066 -> Waiting on time sync...
16:53:34.196 -> checking wifi...
16:53:34.242 -> connecting...1614165813
16:53:34.242 -> Refreshing JWT
16:53:34.764 -> 1
16:53:34.764 -> [V][ssl_client.cpp:56] start_ssl_client(): Free internal heap before TLS 248704
16:53:34.764 -> [V][ssl_client.cpp:58] start_ssl_client(): Starting socket
16:53:36.262 -> [V][ssl_client.cpp:93] start_ssl_client(): Seeding the random number generator
16:53:36.262 -> [V][ssl_client.cpp:102] start_ssl_client(): Setting up the SSL/TLS structure...
16:53:36.262 -> [I][ssl_client.cpp:156] start_ssl_client(): WARNING: Use certificates for a more secure communication!
16:53:36.262 -> [V][ssl_client.cpp:180] start_ssl_client(): Setting hostname for TLS session...
16:53:36.262 -> [V][ssl_client.cpp:195] start_ssl_client(): Performing the SSL/TLS handshake...
16:53:38.080 -> [V][ssl_client.cpp:216] start_ssl_client(): Verifying peer X.509 certificate...
16:53:38.115 -> [V][ssl_client.cpp:225] start_ssl_client(): Certificate verified.
16:53:38.115 -> [V][ssl_client.cpp:240] start_ssl_client(): Free internal heap after TLS 209476
16:53:38.115 -> [V][ssl_client.cpp:279] send_ssl_data(): Writing HTTP request...
16:53:39.094 -> [V][ssl_client.cpp:248] stop_ssl_socket(): Cleaning SSL connection.
16:53:39.094 -> not connected
16:53:39.094 -> Settings incorrect or missing a cyper for SSL
16:53:39.127 -> Connect with mqtt.2030.ltsapis.goog:8883
16:53:39.127 -> ClientId: projects/kts01-water-level/locations/europe-west1/registries/iot-sample-registry/devices/iot-sample-device
16:53:39.127 -> Waiting 60 seconds, retry will likely fail
16:53:40.103 -> ....
16:53:40.142 -> checking wifi...
16:53:40.142 -> connecting...1614165819
16:53:40.142 -> Refreshing JWT
16:53:40.639 -> 2
16:53:40.675 -> [V][ssl_client.cpp:56] start_ssl_client(): Free internal heap before TLS 248328
16:53:40.675 -> [V][ssl_client.cpp:58] start_ssl_client(): Starting socket
16:53:40.851 -> [V][ssl_client.cpp:93] start_ssl_client(): Seeding the random number generator
16:53:40.851 -> [V][ssl_client.cpp:102] start_ssl_client(): Setting up the SSL/TLS structure...
16:53:40.893 -> [I][ssl_client.cpp:156] start_ssl_client(): WARNING: Use certificates for a more secure communication!
16:53:40.893 -> [V][ssl_client.cpp:180] start_ssl_client(): Setting hostname for TLS session...
16:53:40.893 -> [V][ssl_client.cpp:195] start_ssl_client(): Performing the SSL/TLS handshake...
16:53:42.796 -> [V][ssl_client.cpp:216] start_ssl_client(): Verifying peer X.509 certificate...
16:53:42.834 -> [V][ssl_client.cpp:225] start_ssl_client(): Certificate verified.
16:53:42.834 -> [V][ssl_client.cpp:240] start_ssl_client(): Free internal heap after TLS 209368
16:53:42.834 -> [V][ssl_client.cpp:279] send_ssl_data(): Writing HTTP request...
16:53:43.810 -> [V][ssl_client.cpp:248] stop_ssl_socket(): Cleaning SSL connection.
16:53:43.810 -> not connected
16:53:43.810 -> Settings incorrect or missing a cyper for SSL
16:53:43.850 -> Connect with mqtt.2030.ltsapis.goog:8883
16:53:43.850 -> ClientId: projects/kts01-water-level/locations/europe-west1/registries/iot-sample-registry/devices/iot-sample-device
16:53:43.850 -> Waiting 60 seconds, retry will likely fail
16:53:44.829 -> ....
16:53:44.829 -> checking wifi...
16:53:44.877 -> connecting...1614165824
16:53:44.877 -> Refreshing JWT
16:53:45.358 -> 3
16:53:45.358 -> [V][ssl_client.cpp:56] start_ssl_client(): Free internal heap before TLS 248232
16:53:45.395 -> [V][ssl_client.cpp:58] start_ssl_client(): Starting socket
16:53:45.560 -> [V][ssl_client.cpp:93] start_ssl_client(): Seeding the random number generator
16:53:45.594 -> [V][ssl_client.cpp:102] start_ssl_client(): Setting up the SSL/TLS structure...
16:53:45.594 -> [I][ssl_client.cpp:156] start_ssl_client(): WARNING: Use certificates for a more secure communication!
16:53:45.594 -> [V][ssl_client.cpp:180] start_ssl_client(): Setting hostname for TLS session...
16:53:45.594 -> [V][ssl_client.cpp:195] start_ssl_client(): Performing the SSL/TLS handshake...
16:53:47.436 -> [V][ssl_client.cpp:216] start_ssl_client(): Verifying peer X.509 certificate...
16:53:47.436 -> [V][ssl_client.cpp:225] start_ssl_client(): Certificate verified.
16:53:47.436 -> [V][ssl_client.cpp:240] start_ssl_client(): Free internal heap after TLS 209284
16:53:47.436 -> [V][ssl_client.cpp:279] send_ssl_data(): Writing HTTP request...
16:53:48.428 -> [V][ssl_client.cpp:248] stop_ssl_socket(): Cleaning SSL connection.
16:53:48.469 -> not connected
16:53:48.469 -> Settings incorrect or missing a cyper for SSL
16:53:48.469 -> Connect with mqtt.2030.ltsapis.goog:8883
16:53:48.469 -> ClientId: projects/kts01-water-level/locations/europe-west1/registries/iot-sample-registry/devices/iot-sample-device
16:53:48.469 -> Waiting 60 seconds, retry will likely fail
16:53:49.442 -> ....
16:53:49.476 -> checking wifi...
16:53:49.476 -> connecting...1614165828
16:53:49.476 -> Refreshing JWT
16:53:49.993 -> 4
16:53:49.993 -> [V][ssl_client.cpp:56] start_ssl_client(): Free internal heap before TLS 247884
16:53:49.993 -> [V][ssl_client.cpp:58] start_ssl_client(): Starting socket
16:53:50.185 -> [V][ssl_client.cpp:93] start_ssl_client(): Seeding the random number generator
16:53:50.185 -> [V][ssl_client.cpp:102] start_ssl_client(): Setting up the SSL/TLS structure...
16:53:50.185 -> [I][ssl_client.cpp:156] start_ssl_client(): WARNING: Use certificates for a more secure communication!
16:53:50.185 -> [V][ssl_client.cpp:180] start_ssl_client(): Setting hostname for TLS session...
16:53:50.226 -> [V][ssl_client.cpp:195] start_ssl_client(): Performing the SSL/TLS handshake...
16:53:52.043 -> [V][ssl_client.cpp:216] start_ssl_client(): Verifying peer X.509 certificate...
16:53:52.043 -> [V][ssl_client.cpp:225] start_ssl_client(): Certificate verified.
16:53:52.043 -> [V][ssl_client.cpp:240] start_ssl_client(): Free internal heap after TLS 208980
16:53:52.043 -> [V][ssl_client.cpp:279] send_ssl_data(): Writing HTTP request...
16:53:53.058 -> [V][ssl_client.cpp:248] stop_ssl_socket(): Cleaning SSL connection.
16:53:53.058 -> not connected
16:53:53.058 -> Settings incorrect or missing a cyper for SSL
16:53:53.058 -> Connect with mqtt.2030.ltsapis.goog:8883
16:53:53.058 -> ClientId: projects/kts01-water-level/locations/europe-west1/registries/iot-sample-registry/devices/iot-sample-device
16:53:53.058 -> Waiting 60 seconds, retry will likely fail
16:53:54.048 -> ....
16:53:54.048 -> checking wifi...
16:53:54.082 -> connecting...1614165833
16:53:54.082 -> Refreshing JWT
16:53:54.583 -> 5
16:53:54.583 -> [V][ssl_client.cpp:56] start_ssl_client(): Free internal heap before TLS 247576
16:53:54.583 -> [V][ssl_client.cpp:58] start_ssl_client(): Starting socket
16:53:54.773 -> [V][ssl_client.cpp:93] start_ssl_client(): Seeding the random number generator
16:53:54.813 -> [V][ssl_client.cpp:102] start_ssl_client(): Setting up the SSL/TLS structure...
16:53:54.813 -> [I][ssl_client.cpp:156] start_ssl_client(): WARNING: Use certificates for a more secure communication!
16:53:54.813 -> [V][ssl_client.cpp:180] start_ssl_client(): Setting hostname for TLS session...
16:53:54.813 -> [V][ssl_client.cpp:195] start_ssl_client(): Performing the SSL/TLS handshake...
16:53:56.740 -> [V][ssl_client.cpp:216] start_ssl_client(): Verifying peer X.509 certificate...
16:53:56.740 -> [V][ssl_client.cpp:225] start_ssl_client(): Certificate verified.
16:53:56.740 -> [V][ssl_client.cpp:240] start_ssl_client(): Free internal heap after TLS 208688
16:53:56.740 -> [V][ssl_client.cpp:279] send_ssl_data(): Writing HTTP request...
16:53:57.767 -> [V][ssl_client.cpp:248] stop_ssl_socket(): Cleaning SSL connection.
16:53:57.767 -> not connected
16:53:57.767 -> Settings incorrect or missing a cyper for SSL
16:53:57.767 -> Connect with mqtt.2030.ltsapis.goog:8883
16:53:57.767 -> ClientId: projects/kts01-water-level/locations/europe-west1/registries/iot-sample-registry/devices/iot-sample-device
16:53:57.767 -> Waiting 60 seconds, retry will likely fail
16:53:58.788 -> ....
16:53:58.788 -> checking wifi...
16:53:58.788 -> connecting...1614165837
16:53:58.788 -> Refreshing JWT
16:53:59.293 -> 6
16:53:59.293 -> [V][ssl_client.cpp:56] start_ssl_client(): Free internal heap before TLS 247260
16:53:59.334 -> [V][ssl_client.cpp:58] start_ssl_client(): Starting socket
16:53:59.483 -> [V][ssl_client.cpp:93] start_ssl_client(): Seeding the random number generator
16:53:59.483 -> [V][ssl_client.cpp:102] start_ssl_client(): Setting up the SSL/TLS structure...
16:53:59.518 -> [I][ssl_client.cpp:156] start_ssl_client(): WARNING: Use certificates for a more secure communication!
16:53:59.518 -> [V][ssl_client.cpp:180] start_ssl_client(): Setting hostname for TLS session...
16:53:59.518 -> [V][ssl_client.cpp:195] start_ssl_client(): Performing the SSL/TLS handshake...
16:54:01.436 -> [V][ssl_client.cpp:216] start_ssl_client(): Verifying peer X.509 certificate...
16:54:01.436 -> [V][ssl_client.cpp:225] start_ssl_client(): Certificate verified.
16:54:01.436 -> [V][ssl_client.cpp:240] start_ssl_client(): Free internal heap after TLS 208352
16:54:01.477 -> [V][ssl_client.cpp:279] send_ssl_data(): Writing HTTP request...
16:54:02.435 -> [V][ssl_client.cpp:248] stop_ssl_socket(): Cleaning SSL connection.
16:54:02.476 -> not connected
16:54:02.476 -> Settings incorrect or missing a cyper for SSL
16:54:02.476 -> Connect with mqtt.2030.ltsapis.goog:8883
16:54:02.476 -> ClientId: projects/kts01-water-level/locations/europe-west1/registries/iot-sample-registry/devices/iot-sample-device
16:54:02.476 -> Waiting 60 seconds, retry will likely fail
16:54:03.452 -> ....
16:54:03.493 -> checking wifi...
16:54:03.493 -> connecting...1614165842
16:54:03.493 -> Refreshing JWT
16:54:04.026 -> 7
16:54:04.026 -> [V][ssl_client.cpp:56] start_ssl_client(): Free internal heap before TLS 246952
16:54:04.026 -> [V][ssl_client.cpp:58] start_ssl_client(): Starting socket
16:54:04.203 -> [V][ssl_client.cpp:93] start_ssl_client(): Seeding the random number generator
16:54:04.203 -> [V][ssl_client.cpp:102] start_ssl_client(): Setting up the SSL/TLS structure...
16:54:04.203 -> [I][ssl_client.cpp:156] start_ssl_client(): WARNING: Use certificates for a more secure communication!
16:54:04.244 -> [V][ssl_client.cpp:180] start_ssl_client(): Setting hostname for TLS session...
16:54:04.244 -> [V][ssl_client.cpp:195] start_ssl_client(): Performing the SSL/TLS handshake...
16:54:06.140 -> [V][ssl_client.cpp:216] start_ssl_client(): Verifying peer X.509 certificate...
16:54:06.177 -> [V][ssl_client.cpp:225] start_ssl_client(): Certificate verified.
16:54:06.177 -> [V][ssl_client.cpp:240] start_ssl_client(): Free internal heap after TLS 208044
16:54:06.177 -> [V][ssl_client.cpp:279] send_ssl_data(): Writing HTTP request...
16:54:07.183 -> [V][ssl_client.cpp:248] stop_ssl_socket(): Cleaning SSL connection.
16:54:07.183 -> not connected
16:54:07.183 -> Settings incorrect or missing a cyper for SSL
16:54:07.183 -> Connect with mqtt.2030.ltsapis.goog:8883
16:54:07.183 -> ClientId: projects/kts01-water-level/locations/europe-west1/registries/iot-sample-registry/devices/iot-sample-device
16:54:07.183 -> Waiting 60 seconds, retry will likely fail
16:54:08.181 -> ....
16:54:08.181 -> checking wifi...
16:54:08.181 -> connecting...1614165847
16:54:08.181 -> Refreshing JWT
16:54:08.710 -> 8
16:54:08.710 -> [V][ssl_client.cpp:56] start_ssl_client(): Free internal heap before TLS 246636
16:54:08.746 -> [V][ssl_client.cpp:58] start_ssl_client(): Starting socket
16:54:08.901 -> [V][ssl_client.cpp:93] start_ssl_client(): Seeding the random number generator
16:54:08.901 -> [V][ssl_client.cpp:102] start_ssl_client(): Setting up the SSL/TLS structure...
16:54:08.943 -> [I][ssl_client.cpp:156] start_ssl_client(): WARNING: Use certificates for a more secure communication!
16:54:08.943 -> [V][ssl_client.cpp:180] start_ssl_client(): Setting hostname for TLS session...
16:54:08.943 -> [V][ssl_client.cpp:195] start_ssl_client(): Performing the SSL/TLS handshake...
16:54:10.864 -> [V][ssl_client.cpp:216] start_ssl_client(): Verifying peer X.509 certificate...
16:54:10.864 -> [V][ssl_client.cpp:225] start_ssl_client(): Certificate verified.
16:54:10.901 -> [V][ssl_client.cpp:240] start_ssl_client(): Free internal heap after TLS 207732
16:54:10.901 -> [V][ssl_client.cpp:279] send_ssl_data(): Writing HTTP request...
16:54:11.902 -> [V][ssl_client.cpp:248] stop_ssl_socket(): Cleaning SSL connection.
16:54:11.902 -> not connected
16:54:11.902 -> Settings incorrect or missing a cyper for SSL
16:54:11.902 -> Connect with mqtt.2030.ltsapis.goog:8883
16:54:11.902 -> ClientId: projects/kts01-water-level/locations/europe-west1/registries/iot-sample-registry/devices/iot-sample-device
16:54:11.902 -> Waiting 60 seconds, retry will likely fail
16:54:12.907 -> ....
16:54:12.907 -> checking wifi...
16:54:12.907 -> connecting...1614165852
16:54:12.907 -> Refreshing JWT
16:54:13.445 -> 9
16:54:13.445 -> [V][ssl_client.cpp:56] start_ssl_client(): Free internal heap before TLS 246328
16:54:13.445 -> [V][ssl_client.cpp:58] start_ssl_client(): Starting socket
16:54:13.628 -> [V][ssl_client.cpp:93] start_ssl_client(): Seeding the random number generator
16:54:13.628 -> [V][ssl_client.cpp:102] start_ssl_client(): Setting up the SSL/TLS structure...
16:54:13.628 -> [I][ssl_client.cpp:156] start_ssl_client(): WARNING: Use certificates for a more secure communication!
16:54:13.628 -> [V][ssl_client.cpp:180] start_ssl_client(): Setting hostname for TLS session...
16:54:13.661 -> [V][ssl_client.cpp:195] start_ssl_client(): Performing the SSL/TLS handshake...
16:54:15.555 -> [V][ssl_client.cpp:216] start_ssl_client(): Verifying peer X.509 certificate...
16:54:15.594 -> [V][ssl_client.cpp:225] start_ssl_client(): Certificate verified.
16:54:15.594 -> [V][ssl_client.cpp:240] start_ssl_client(): Free internal heap after TLS 207424
16:54:15.594 -> [V][ssl_client.cpp:279] send_ssl_data(): Writing HTTP request...
16:54:16.566 -> [V][ssl_client.cpp:248] stop_ssl_socket(): Cleaning SSL connection.
16:54:16.614 -> not connected
16:54:16.614 -> Settings incorrect or missing a cyper for SSL
16:54:16.614 -> Connect with mqtt.2030.ltsapis.goog:8883
16:54:16.614 -> ClientId: projects/kts01-water-level/locations/europe-west1/registries/iot-sample-registry/devices/iot-sample-device
16:54:16.614 -> Waiting 60 seconds, retry will likely fail
16:54:17.610 -> ....
16:54:17.610 -> checking wifi...
16:54:17.610 -> connecting...1614165856
16:54:17.610 -> Refreshing JWT
16:54:18.117 -> 10
16:54:18.117 -> [V][ssl_client.cpp:56] start_ssl_client(): Free internal heap before TLS 246012
16:54:18.159 -> [V][ssl_client.cpp:58] start_ssl_client(): Starting socket
16:54:18.340 -> [V][ssl_client.cpp:93] start_ssl_client(): Seeding the random number generator
16:54:18.340 -> [V][ssl_client.cpp:102] start_ssl_client(): Setting up the SSL/TLS structure...
16:54:18.340 -> [I][ssl_client.cpp:156] start_ssl_client(): WARNING: Use certificates for a more secure communication!
16:54:18.377 -> [V][ssl_client.cpp:180] start_ssl_client(): Setting hostname for TLS session...
16:54:18.377 -> [V][ssl_client.cpp:195] start_ssl_client(): Performing the SSL/TLS handshake...
16:54:20.294 -> [V][ssl_client.cpp:216] start_ssl_client(): Verifying peer X.509 certificate...
16:54:20.294 -> [V][ssl_client.cpp:225] start_ssl_client(): Certificate verified.
16:54:20.294 -> [V][ssl_client.cpp:240] start_ssl_client(): Free internal heap after TLS 207108
16:54:20.294 -> [V][ssl_client.cpp:279] send_ssl_data(): Writing HTTP request...
16:54:21.319 -> [V][ssl_client.cpp:248] stop_ssl_socket(): Cleaning SSL connection.
16:54:21.319 -> not connected
16:54:21.319 -> Settings incorrect or missing a cyper for SSL
16:54:21.319 -> Connect with mqtt.2030.ltsapis.goog:8883
16:54:21.319 -> ClientId: projects/kts01-water-level/locations/europe-west1/registries/iot-sample-registry/devices/iot-sample-device
16:54:21.319 -> Waiting 60 seconds, retry will likely fail
16:54:22.323 -> ....
16:54:22.323 -> checking wifi...
16:54:22.323 -> connecting...1614165861
16:54:22.323 -> Refreshing JWT
16:54:22.877 -> 11
16:54:22.877 -> [V][ssl_client.cpp:56] start_ssl_client(): Free internal heap before TLS 245704
16:54:22.877 -> [V][ssl_client.cpp:58] start_ssl_client(): Starting socket
16:54:23.061 -> [V][ssl_client.cpp:93] start_ssl_client(): Seeding the random number generator
16:54:23.061 -> [V][ssl_client.cpp:102] start_ssl_client(): Setting up the SSL/TLS structure...
16:54:23.061 -> [I][ssl_client.cpp:156] start_ssl_client(): WARNING: Use certificates for a more secure communication!
16:54:23.061 -> [V][ssl_client.cpp:180] start_ssl_client(): Setting hostname for TLS session...
16:54:23.061 -> [V][ssl_client.cpp:195] start_ssl_client(): Performing the SSL/TLS handshake...
16:54:25.012 -> [V][ssl_client.cpp:216] start_ssl_client(): Verifying peer X.509 certificate...
16:54:25.012 -> [V][ssl_client.cpp:225] start_ssl_client(): Certificate verified.
16:54:25.012 -> [V][ssl_client.cpp:240] start_ssl_client(): Free internal heap after TLS 206900
16:54:25.012 -> [V][ssl_client.cpp:279] send_ssl_data(): Writing HTTP request...
16:54:25.988 -> [V][ssl_client.cpp:248] stop_ssl_socket(): Cleaning SSL connection.
16:54:26.027 -> not connected
16:54:26.027 -> Settings incorrect or missing a cyper for SSL
16:54:26.027 -> Connect with mqtt.2030.ltsapis.goog:8883
16:54:26.027 -> ClientId: projects/kts01-water-level/locations/europe-west1/registries/iot-sample-registry/devices/iot-sample-device
16:54:26.027 -> Waiting 60 seconds, retry will likely fail
16:54:27.047 -> ....
16:54:27.047 -> checking wifi...
16:54:27.047 -> connecting...1614165866
16:54:27.047 -> Refreshing JWT
16:54:27.543 -> 12
16:54:27.543 -> [V][ssl_client.cpp:56] start_ssl_client(): Free internal heap before TLS 245492
16:54:27.590 -> [V][ssl_client.cpp:58] start_ssl_client(): Starting socket
16:54:27.745 -> [V][ssl_client.cpp:93] start_ssl_client(): Seeding the random number generator
16:54:27.745 -> [V][ssl_client.cpp:102] start_ssl_client(): Setting up the SSL/TLS structure...
16:54:27.784 -> [I][ssl_client.cpp:156] start_ssl_client(): WARNING: Use certificates for a more secure communication!
16:54:27.784 -> [V][ssl_client.cpp:180] start_ssl_client(): Setting hostname for TLS session...
16:54:27.784 -> [V][ssl_client.cpp:195] start_ssl_client(): Performing the SSL/TLS handshake...
16:54:29.711 -> [V][ssl_client.cpp:216] start_ssl_client(): Verifying peer X.509 certificate...
16:54:29.711 -> [V][ssl_client.cpp:225] start_ssl_client(): Certificate verified.
16:54:29.711 -> [V][ssl_client.cpp:240] start_ssl_client(): Free internal heap after TLS 206688
16:54:29.745 -> [V][ssl_client.cpp:279] send_ssl_data(): Writing HTTP request...
16:54:30.703 -> [V][ssl_client.cpp:248] stop_ssl_socket(): Cleaning SSL connection.
16:54:30.744 -> not connected
16:54:30.744 -> Settings incorrect or missing a cyper for SSL
16:54:30.744 -> Connect with mqtt.2030.ltsapis.goog:8883
16:54:30.744 -> ClientId: projects/kts01-water-level/locations/europe-west1/registries/iot-sample-registry/devices/iot-sample-device
16:54:30.744 -> Waiting 60 seconds, retry will likely fail
16:54:31.753 -> ....
16:54:31.753 -> checking wifi...
16:54:31.753 -> connecting...1614165870
16:54:31.753 -> Refreshing JWT
16:54:32.266 -> 13
16:54:32.266 -> [V][ssl_client.cpp:56] start_ssl_client(): Free internal heap before TLS 245492
16:54:32.301 -> [V][ssl_client.cpp:58] start_ssl_client(): Starting socket
16:54:32.458 -> [V][ssl_client.cpp:93] start_ssl_client(): Seeding the random number generator
16:54:32.458 -> [V][ssl_client.cpp:102] start_ssl_client(): Setting up the SSL/TLS structure...
16:54:32.494 -> [I][ssl_client.cpp:156] start_ssl_client(): WARNING: Use certificates for a more secure communication!
16:54:32.494 -> [V][ssl_client.cpp:180] start_ssl_client(): Setting hostname for TLS session...
16:54:32.494 -> [V][ssl_client.cpp:195] start_ssl_client(): Performing the SSL/TLS handshake...
16:54:34.422 -> [V][ssl_client.cpp:216] start_ssl_client(): Verifying peer X.509 certificate...
16:54:34.422 -> [V][ssl_client.cpp:225] start_ssl_client(): Certificate verified.
16:54:34.422 -> [V][ssl_client.cpp:240] start_ssl_client(): Free internal heap after TLS 206696
16:54:34.461 -> [V][ssl_client.cpp:279] send_ssl_data(): Writing HTTP request...
16:54:35.419 -> [V][ssl_client.cpp:248] stop_ssl_socket(): Cleaning SSL connection.
16:54:35.461 -> not connected
16:54:35.461 -> Settings incorrect or missing a cyper for SSL
16:54:35.461 -> Connect with mqtt.2030.ltsapis.goog:8883
16:54:35.461 -> ClientId: projects/kts01-water-level/locations/europe-west1/registries/iot-sample-registry/devices/iot-sample-device
16:54:35.461 -> Waiting 60 seconds, retry will likely fail
16:54:36.445 -> ....
16:54:36.445 -> checking wifi...
16:54:36.486 -> connecting...1614165875
16:54:36.486 -> Refreshing JWT
16:54:36.975 -> 14
16:54:36.975 -> [V][ssl_client.cpp:56] start_ssl_client(): Free internal heap before TLS 245280
16:54:37.010 -> [V][ssl_client.cpp:58] start_ssl_client(): Starting socket
16:54:37.162 -> [V][ssl_client.cpp:93] start_ssl_client(): Seeding the random number generator
16:54:37.200 -> [V][ssl_client.cpp:102] start_ssl_client(): Setting up the SSL/TLS structure...
16:54:37.200 -> [I][ssl_client.cpp:156] start_ssl_client(): WARNING: Use certificates for a more secure communication!
16:54:37.200 -> [V][ssl_client.cpp:180] start_ssl_client(): Setting hostname for TLS session...
16:54:37.200 -> [V][ssl_client.cpp:195] start_ssl_client(): Performing the SSL/TLS handshake...
16:54:39.235 -> [V][ssl_client.cpp:216] start_ssl_client(): Verifying peer X.509 certificate...
16:54:39.235 -> [V][ssl_client.cpp:225] start_ssl_client(): Certificate verified.
16:54:39.235 -> [V][ssl_client.cpp:240] start_ssl_client(): Free internal heap after TLS 206476
16:54:39.235 -> [V][ssl_client.cpp:279] send_ssl_data(): Writing HTTP request...
16:54:40.244 -> [V][ssl_client.cpp:248] stop_ssl_socket(): Cleaning SSL connection.
16:54:40.244 -> not connected
16:54:40.244 -> Settings incorrect or missing a cyper for SSL
16:54:40.244 -> Connect with mqtt.2030.ltsapis.goog:8883
16:54:40.244 -> ClientId: projects/kts01-water-level/locations/europe-west1/registries/iot-sample-registry/devices/iot-sample-device
16:54:40.285 -> Waiting 60 seconds, retry will likely fail
16:54:41.266 -> ....
16:54:41.266 -> checking wifi...
16:54:41.266 -> connecting...1614165880
16:54:41.266 -> Refreshing JWT
16:54:41.802 -> 15
16:54:41.802 -> [V][ssl_client.cpp:56] start_ssl_client(): Free internal heap before TLS 245068
16:54:41.802 -> [V][ssl_client.cpp:58] start_ssl_client(): Starting socket
16:54:42.004 -> [V][ssl_client.cpp:93] start_ssl_client(): Seeding the random number generator
16:54:42.004 -> [V][ssl_client.cpp:102] start_ssl_client(): Setting up the SSL/TLS structure...
16:54:42.004 -> [I][ssl_client.cpp:156] start_ssl_client(): WARNING: Use certificates for a more secure communication!
16:54:42.004 -> [V][ssl_client.cpp:180] start_ssl_client(): Setting hostname for TLS session...
16:54:42.004 -> [V][ssl_client.cpp:195] start_ssl_client(): Performing the SSL/TLS handshake...
16:54:43.965 -> [V][ssl_client.cpp:216] start_ssl_client(): Verifying peer X.509 certificate...
16:54:43.965 -> [V][ssl_client.cpp:225] start_ssl_client(): Certificate verified.
16:54:43.965 -> [V][ssl_client.cpp:240] start_ssl_client(): Free internal heap after TLS 206272
16:54:44.011 -> [V][ssl_client.cpp:279] send_ssl_data(): Writing HTTP request...
16:54:44.968 -> connected
16:54:44.968 ->
16:54:44.968 -> Library connected!
16:54:44.968 -> [V][ssl_client.cpp:279] send_ssl_data(): Writing HTTP request...
16:54:45.214 -> [V][ssl_client.cpp:279] send_ssl_data(): Writing HTTP request...
16:54:45.403 -> [V][ssl_client.cpp:279] send_ssl_data(): Writing HTTP request...
16:54:45.403 -> [V][ssl_client.cpp:279] send_ssl_data(): Writing HTTP request...
16:54:45.403 -> Error[V][ssl_client.cpp:279] send_ssl_data(): Writing HTTP request...
16:54:45.403 -> incoming: /devices/iot-sample-device/config -
16:54:45.403 -> [V][ssl_client.cpp:279] send_ssl_data(): Writing HTTP request...
16:54:46.411 -> [V][ssl_client.cpp:279] send_ssl_data(): Writing HTTP request...
16:54:47.426 -> [V][ssl_client.cpp:279] send_ssl_data(): Writing HTTP request...
16:54:48.435 -> [V][ssl_client.cpp:279] send_ssl_data(): Writing HTTP request...
16:54:49.443 -> [V][ssl_client.cpp:279] send_ssl_data(): Writing HTTP request...
16:54:50.436 -> [V][ssl_client.cpp:279] send_ssl_data(): Writing HTTP request...
16:54:51.458 -> [V][ssl_client.cpp:279] send_ssl_data(): Writing HTTP request...
16:54:52.452 -> [V][ssl_client.cpp:279] send_ssl_data(): Writing HTTP request...
16:54:53.434 -> [V][ssl_client.cpp:279] send_ssl_data(): Writing HTTP request...
16:54:54.472 -> [V][ssl_client.cpp:279] send_ssl_data(): Writing HTTP request...
16:54:55.484 -> [V][ssl_client.cpp:279] send_ssl_data(): Writing HTTP request...

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant