Black Lives Matter - Action and Equality. ... Adafruit joins the Stop Hate for Profit campaign.
0

disconect from adafruit io
Moderators: adafruit_support_bill, adafruit

Forum rules
If you're posting code, please make sure your code does not include your Adafruit IO Active Key or WiFi network credentials.
Please be positive and constructive with your questions and comments.

disconect from adafruit io

by fmeylink on Tue Jan 08, 2019 7:07 pm

Hi,

i got disconnected after a minute from the adafruit io.
i made a verbose debug that is below:
AdafruitIO::connect()
[D][WiFiGeneric.cpp:265] _eventCallback(): Event: 2 - STA_START
.......[D][WiFiGeneric.cpp:265] _eventCallback(): Event: 4 - STA_CONNECTED
[D][WiFiGeneric.cpp:265] _eventCallback(): Event: 7 - STA_GOT_IP
[V][ssl_client.cpp:48] start_ssl_client(): Free heap before TLS 147684
[V][ssl_client.cpp:50] start_ssl_client(): Starting socket
[V][ssl_client.cpp:86] start_ssl_client(): Seeding the random number generator
[V][ssl_client.cpp:95] start_ssl_client(): Setting up the SSL/TLS structure...
[I][ssl_client.cpp:119] start_ssl_client(): WARNING: Use certificates for a more secure communication!
[V][ssl_client.cpp:143] start_ssl_client(): Setting hostname for TLS session...
[V][ssl_client.cpp:158] start_ssl_client(): Performing the SSL/TLS handshake...
[V][ssl_client.cpp:177] start_ssl_client(): Verifying peer X.509 certificate...
[V][ssl_client.cpp:186] start_ssl_client(): Certificate verified.
[V][ssl_client.cpp:201] start_ssl_client(): Free heap after TLS 104036
[V][ssl_client.cpp:240] send_ssl_data(): Writing HTTP request...
[V][ssl_client.cpp:240] send_ssl_data(): Writing HTTP request...
[V][ssl_client.cpp:240] send_ssl_data(): Writing HTTP request...
[V][ssl_client.cpp:240] send_ssl_data(): Writing HTTP request...
[V][ssl_client.cpp:240] send_ssl_data(): Writing HTTP request...
[V][ssl_client.cpp:240] send_ssl_data(): Writing HTTP request...

Adafruit IO connected.
Adafruit IO connected.
AIN0: 4398
AIN1: 4444
AIN2: 5174
AIN3: 4401

[V][ssl_client.cpp:240] send_ssl_data(): Writing HTTP request...
[V][ssl_client.cpp:240] send_ssl_data(): Writing HTTP request...
[V][ssl_client.cpp:240] send_ssl_data(): Writing HTTP request...
[V][ssl_client.cpp:240] send_ssl_data(): Writing HTTP request...
Adafruit IO connected.
AIN0: 4401
AIN1: 4444
AIN2: 5165
AIN3: 4401

after a minuteL:

[V][ssl_client.cpp:240] send_ssl_data(): Writing HTTP request...
[V][ssl_client.cpp:240] send_ssl_data(): Writing HTTP request...
[V][ssl_client.cpp:240] send_ssl_data(): Writing HTTP request...
[V][ssl_client.cpp:240] send_ssl_data(): Writing HTTP request...
[E][ssl_client.cpp:28] handle_error(): UNKNOWN ERROR CODE (004E)
[E][ssl_client.cpp:30] handle_error(): MbedTLS message code: -78
[V][ssl_client.cpp:209] stop_ssl_socket(): Cleaning SSL connection.
Adafruit IO connected.
[V][ssl_client.cpp:48] start_ssl_client(): Free heap before TLS 118708
[V][ssl_client.cpp:50] start_ssl_client(): Starting socket
[E][ssl_client.cpp:80] start_ssl_client(): Connect to Server failed!
[E][WiFiClientSecure.cpp:107] connect(): lwip_connect_r: 113
[V][ssl_client.cpp:209] stop_ssl_socket(): Cleaning SSL connection.
AdafruitIO::connect()
[V][ssl_client.cpp:48] start_ssl_client(): Free heap before TLS 144392
[V][ssl_client.cpp:50] start_ssl_client(): Starting socket
[D][WiFiGeneric.cpp:265] _eventCallback(): Event: 5 - STA_DISCONNECTED
[W][WiFiGeneric.cpp:270] _eventCallback(): Reason: 7 - NOT_ASSOCED
[E][ssl_client.cpp:80] start_ssl_client(): Connect to Server failed!
[E][WiFiClientSecure.cpp:107] connect(): lwip_connect_r: 113
[V][ssl_client.cpp:209] stop_ssl_socket(): Cleaning SSL connection.
...........................................................................

it looks like the certificate is not ok, how do i fix the certificate thing ?

i have a esp32 feather used the examples from adafruit io even the examples are not working.

any thoughts ??

fmeylink
 
Posts: 13
Joined: Thu Oct 26, 2017 4:39 pm

Re: disconect from adafruit io

by franklin97355 on Tue Jan 08, 2019 10:03 pm


franklin97355
 
Posts: 21498
Joined: Mon Apr 21, 2008 2:33 pm
Location: Lacomb, OR.

Re: disconect from adafruit io

by fmeylink on Wed Jan 09, 2019 4:35 am

tank you for the sugestion.

I have a feather esp32, this solution is for other boards.

fmeylink
 
Posts: 13
Joined: Thu Oct 26, 2017 4:39 pm

Re: disconect from adafruit io

by Tyhuffman on Sun Jun 30, 2019 1:19 pm

Thank you

Tyhuffman
 
Posts: 9
Joined: Fri Jun 26, 2015 12:11 pm

Please be positive and constructive with your questions and comments.