Servo sterowanie Esp8266

Masz pomysł na funkcjonalność lub koncepcję na rozwój projektu. Opisz wszystko tutaj.
Awatar użytkownika
Duch__
Posty: 586
Rejestracja: śr sie 24, 2016 7:26 pm
Lokalizacja: Opole

wt sty 14, 2020 11:10 pm

I get something like this and I don't know why it doesn't connect to WIFI after the reset. I selected my WIFI ssid and writed only password.

Kod: Zaznacz cały

*WM: [2] <- HTTP WiFi save  
*WM: [3] Method: POST
*WM: [2] Parameters 
*WM: [2] -------------------- 
*WM: [2] server: svrX.supla.org
*WM: [2] email: my@email.pl
*WM: [2] name: Dimmer
*WM: [2] status: SuplaDevice initialized
*WM: [2] -------------------- 
*WM: [3] Sent wifi save page 
*WM: [2] process connect 
*WM: [2] Connecting as wifi client... 
*WM: [1] STA static IP:
*WM: [2] setSTAConfig static ip not set 
*WM: [3] WIFI station disconnect 
*WM: [1] CONNECTED:
*WM: [1] Connecting to NEW AP: ssid
*WM: [3] Using Password: password
*WM: [3] WiFi station enable 
*WM: [3] enableSTA PERSISTENT ON 
*WM: [1] connectTimeout not set, ESP waitForConnectResult... 
local IP: 192.168.2.122
subnetMask: 255.255.255.0
gatewayIP: 192.168.2.1
Signal Strength (RSSI): -56 dBm
*WM: [2] Connection result: WL_CONNECTED
*WM: [3] lastconxresult: WL_CONNECTED
*WM: [1] Connect to new AP [SUCCESS] 
*WM: [1] Got IP Address: 
*WM: [1] 192.168.2.122 
Should save config
*WM: [2] disconnect configportal 
*WM: [2] restoring usermode STA
*WM: [2] wifi status: WL_CONNECTED
*WM: [2] wifi mode: STA
*WM: [1] config portal exiting 
connected...yeey :)
saving config
{
  "Supla_server": "svrX.supla.org",
  "Email": "my@email.pl",
  "Supla_name": "Dimmer"
}config saved
wifi Station disconnected

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

load 0x4010f000, len 1384, room 16 
tail 8
chksum 0x2d
csum 0x2d
vac02aff5
~ld
⸮
GUID : XXXXXXXXXXXXXXXXXXXXXXXXXXXXX
AUTHKEY : YYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYY
mounted file system
reading config file
opened config file
{"Supla_server":"svrX.supla.org","Email":"my@email.pl","Supla_name":"Dimmer"}
parsed json
Pos: 0
Using protocol version 8
Aktualnie w domu: 8xSRW-01, 1xROW-02, SUPLA BUTTON V3.4, 16xDS na ESP (GUI), Sonoff S20 jako kontroler CWU

Przydatne linki:
viewtopic.php?f=9&t=4160
search.php?keywords=
elmaya
Posty: 516
Rejestracja: śr cze 27, 2018 5:48 pm
Lokalizacja: Sevilla

wt sty 14, 2020 11:27 pm

for me It looks like this.

Kod: Zaznacz cały

GUID : xxxxxxxx
AUTHKEY : xxxxxxxx
mounted file system
reading config file
opened config file
{"Supla_server":"beta-cloud.supla.org","Email":"mail@mail.com","Supla_name":"Servo"}
            parsed json
Pos: 0
in begin
Using protocol version 8
local IP: 192.168.1.106
subnetMask: 255.255.255.0
gatewayIP: 192.168.1.1
Signal Strength (RSSI): -29 dBm
Establishing connection with: beta-cloud.supla.org (port: 2015)
Connected
What Supla library do you use?
have you tried with the compiled version?
elmaya
Posty: 516
Rejestracja: śr cze 27, 2018 5:48 pm
Lokalizacja: Sevilla

czw sty 16, 2020 4:57 pm

Duch__ pisze:
wt sty 14, 2020 11:10 pm
I get something like this and I don't know why it doesn't connect to WIFI after the reset. I selected my WIFI ssid and writed only password.

Kod: Zaznacz cały

*WM: [2] <- HTTP WiFi save  
*WM: [3] Method: POST
*WM: [2] Parameters 
*WM: [2] -------------------- 
*WM: [2] server: svrX.supla.org
*WM: [2] email: my@email.pl
*WM: [2] name: Dimmer
*WM: [2] status: SuplaDevice initialized
*WM: [2] -------------------- 
*WM: [3] Sent wifi save page 
*WM: [2] process connect 
*WM: [2] Connecting as wifi client... 
*WM: [1] STA static IP:
*WM: [2] setSTAConfig static ip not set 
*WM: [3] WIFI station disconnect 
*WM: [1] CONNECTED:
*WM: [1] Connecting to NEW AP: ssid
*WM: [3] Using Password: password
*WM: [3] WiFi station enable 
*WM: [3] enableSTA PERSISTENT ON 
*WM: [1] connectTimeout not set, ESP waitForConnectResult... 
local IP: 192.168.2.122
subnetMask: 255.255.255.0
gatewayIP: 192.168.2.1
Signal Strength (RSSI): -56 dBm
*WM: [2] Connection result: WL_CONNECTED
*WM: [3] lastconxresult: WL_CONNECTED
*WM: [1] Connect to new AP [SUCCESS] 
*WM: [1] Got IP Address: 
*WM: [1] 192.168.2.122 
Should save config
*WM: [2] disconnect configportal 
*WM: [2] restoring usermode STA
*WM: [2] wifi status: WL_CONNECTED
*WM: [2] wifi mode: STA
*WM: [1] config portal exiting 
connected...yeey :)
saving config
{
  "Supla_server": "svrX.supla.org",
  "Email": "my@email.pl",
  "Supla_name": "Dimmer"
}config saved
wifi Station disconnected

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

load 0x4010f000, len 1384, room 16 
tail 8
chksum 0x2d
csum 0x2d
vac02aff5
~ld
⸮
GUID : XXXXXXXXXXXXXXXXXXXXXXXXXXXXX
AUTHKEY : YYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYY
mounted file system
reading config file
opened config file
{"Supla_server":"svrX.supla.org","Email":"my@email.pl","Supla_name":"Dimmer"}
parsed json
Pos: 0
Using protocol version 8
Surely you have selected a Flash size without SPIFFS and this is necessary to store credentials.
doing tests I have noticed that if I do not erase the flash of the module it tries to connect with the blank credentials and that effect occurs.
To avoid blocking I have changed these two lines of the code.

Kod: Zaznacz cały

char Supla_server[81]=("Unknown server address");   //  it was before     char Supla_server[81];
char Email[81]=("Unknown email address");                 //  it was before      char Email[81];
Awatar użytkownika
Duch__
Posty: 586
Rejestracja: śr sie 24, 2016 7:26 pm
Lokalizacja: Opole

czw sty 16, 2020 4:59 pm

Everything is OK now. I forgot about "v2 Higher Bandwitch". My mistake.
Aktualnie w domu: 8xSRW-01, 1xROW-02, SUPLA BUTTON V3.4, 16xDS na ESP (GUI), Sonoff S20 jako kontroler CWU

Przydatne linki:
viewtopic.php?f=9&t=4160
search.php?keywords=
ODPOWIEDZ