blynkkk / blynk-library

Blynk library for IoT boards. Works with Arduino, ESP32, ESP8266, Raspberry Pi, Particle, ARM Mbed, etc.
https://blynk.io
MIT License
3.83k stars 1.39k forks source link

Can't connect the device using SSL firmware and Dynamic Provisioning. #373

Closed Refenz closed 6 years ago

Refenz commented 6 years ago

Blynk library version: [0.4.8] IDE: [Arduino] IDE version: [1.8.4] Board type: [ESP8266]

Scenario, steps to reproduce

1)Use "Tamplate_ESP8266" sketch. 2)Change:

include

to

include

3)Upload sketch to the board 4)Start Dynamic Provisioning

Expected Result

The board connects to the server using the SSL. Dynamic Provisioning connects the board correctly.

Actual Result

The board doesn't connect to the server. The application reports an error. Log:

[839] 
[840] Hardware v1.0.0
[840] Firmware v1.0.1
[2961] AP SSID: Our Product
[2962] AP IP:   192.168.4.1
[2962] AP URL:  our-product.cc
[85727] WAIT_CONFIG => CONFIGURING
[89291] WiFi SSID: Dom2 Pass: ******
[89291] Blynk cloud: *********************************** @ server.blynk.cc:8442
[89303] CONFIGURING => SWITCH_TO_STA
[89304] Switching to STA...
[90715] SWITCH_TO_STA => CONNECTING_NET
[90716] Connecting to WiFi: Dom2
[95161] CONNECTING_NET => CONNECTING_CLOUD
[95161] Disconnected
[95161] 
    ___  __          __
   / _ )/ /_ _____  / /__
  / _  / / // / _ \/  '_/
 /____/_/\_, /_//_/_/\_\
        /___/ v0.4.8 on NodeMCU

[95168] Connecting to server.blynk.cc:8442
[100169] Connecting to server.blynk.cc:8442
[105170] Connecting to server.blynk.cc:8442
[110171] Connecting to server.blynk.cc:8442
[110442] CONNECTING_CLOUD => ERROR
[120447] Restarting after error.

 ets Jan  8 2013,rst cause:2, boot mode:(3,7)

load 0x4010f000, len 1384, room 16 
tail 8
chksum 0x2d
csum 0x2d
v3de0c112
~ld
[845] 
[845] Hardware v1.0.0
[846] Firmware v1.0.1
[2964] AP SSID: Our Product
[2964] AP IP:   192.168.4.1
[2964] AP URL:  our-product.cc

P.S. @doom369 @vshymanskyy Tell me if you need more information or analyze the logs of the application

Refenz commented 6 years ago

@vshymanskyy Ping