You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm using TinyGSM with a A7670E-FASE modem and try to connect to a MQTT broker (for instance, broker.hivemq.com) using TLS, which fails at the handshake:
[ 14972][V][SSLClient.cpp:404] read(): This is the iClient->read() implementation
[ 14991][V][SSLClient.cpp:404] read(): This is the iClient->read() implementation
[ 14998][V][SSLClient.cpp:168] connect(): connect with CA
[ 15003][V][SSLClient.cpp:226] connect(): Connecting to broker.hivemq.com:8883
[ 15010][V][SSLClient.cpp:227] connect(): Timeout value: 0
[ 15015][V][SSLClient.cpp:228] connect(): CA Certificate: Provided
[ 15021][V][SSLClient.cpp:229] connect(): Client Certificate: Not Provided
[ 15028][V][SSLClient.cpp:230] connect(): Private Key: Not Provided
[ 15034][V][ssl__client.cpp:301] start_ssl_client(): Free internal heap before TLS 345352
[ 15042][V][ssl__client.cpp:302] start_ssl_client(): Connecting to broker.hivemq.com:8883
[ 15050][V][ssl__client.cpp:396] init_tcp_connection(): Client pointer: 0x3ffc15cc
[ 15204][V][ssl__client.cpp:421] seed_random_number_generator(): Seeding the random number generator
[ 15213][V][ssl__client.cpp:423] seed_random_number_generator(): Entropy context initialized
[ 15222][V][ssl__client.cpp:318] start_ssl_client(): Random number generator seeded, ret: 0
[ 15230][V][ssl__client.cpp:443] set_up_tls_defaults(): Setting up the SSL/TLS defaults...
[ 15239][V][ssl__client.cpp:329] start_ssl_client(): SSL config defaults set, ret: 0
[ 15246][V][ssl__client.cpp:483] auth_root_ca_buff(): Loading CA cert
[ 15256][V][ssl__client.cpp:334] start_ssl_client(): SSL auth mode set, ret: 0
[ 15263][V][ssl__client.cpp:339] start_ssl_client(): SSL client cert and key set, ret: 0
[ 15271][V][ssl__client.cpp:630] set_hostname_for_tls(): Setting hostname for TLS session...
[ 15279][V][ssl__client.cpp:344] start_ssl_client(): SSL hostname set, ret: 0
[ 15286][V][ssl__client.cpp:682] set_io_callbacks_and_timeout(): Setting up IO callbacks...
[ 15294][V][ssl__client.cpp:685] set_io_callbacks_and_timeout(): Setting timeout to 0
[ 15302][V][ssl__client.cpp:349] start_ssl_client(): SSL IO callbacks and timeout set, ret: 0
[ 15310][V][ssl__client.cpp:728] perform_ssl_handshake(): Performing the SSL/TLS handshake, timeout 120000 ms
[ 15320][D][ssl__client.cpp:730] perform_ssl_handshake(): calling mbedtls_ssl_handshake with ssl_ctx address 0x3ffb9d14
[ 15379][V][ssl__client.cpp:198] client_net_send(): SSL client TX res=296 len=296
[ 15386][V][ssl__client.cpp:118] client_net_recv_timeout(): Timeout set to 0
[ 15403][V][ssl__client.cpp:118] client_net_recv_timeout(): Timeout set to 0
[15410] ### Closed: 0
[ 15434][V][ssl__client.cpp:118] client_net_recv_timeout(): Timeout set to 0
[ 15451][V][ssl__client.cpp:118] client_net_recv_timeout(): Timeout set to 0
[ 15467][V][ssl__client.cpp:118] client_net_recv_timeout(): Timeout set to 0
[ 15483][V][ssl__client.cpp:118] client_net_recv_timeout(): Timeout set to 0
Those last lines are then repeated infinitely.
I realize that the line "[15410] ### Closed: 0" indicates a closed TCP connection, but I don't know if it's being closed by the SSLClient or by TinyGSM.
The following fields are missing: Description, Steps to Reproduce, Expected Behavior, Actual Behavior, Environment, IDE. Please update the issue with this information.
Hello
I'm using TinyGSM with a A7670E-FASE modem and try to connect to a MQTT broker (for instance, broker.hivemq.com) using TLS, which fails at the handshake:
Those last lines are then repeated infinitely.
I realize that the line "[15410] ### Closed: 0" indicates a closed TCP connection, but I don't know if it's being closed by the SSLClient or by TinyGSM.
Initialization seems to look good:
Can you point me in the right direction where to start looking for mistakes?
My sketch:
The text was updated successfully, but these errors were encountered: