ESP8266 WIFI SoC! General News
Come follow us on Google+ Page

User avatar
By Daniel PARENT
#77065 Hello,

I wish to use the ESP8266 to connect objects in WIFI.

For that I use the IDE ARDUINO to compile and load the program in memory.
Below the connection test program:
Cpp code:
Code: Select all    #include <ESP8266WiFi.h>
 
    const char* ssid = "Livebox-b82e"; // remplacer par le SSID de votre WiFi
    const char* password = "xxxxxxxxxxxxxxxxx"; // remplacer par le mot de passe de votre WiFi
 
    void setup(void){
      Serial.begin(115200);
      Serial.print("début");
 
    // We start by connecting to a WiFi network
    Serial.print("Connecting to ");
    Serial.println(ssid);
 
    WiFi.begin(ssid, password);
}
 
void loop() {
    if(WiFi.status() != WL_CONNECTED)https://www.esp8266.com/posting.php?mode=post&f=4# {
        Serial.println("[loop] no wifi");
        delay(500);
    } else {
        Serial.println("[loop] WiFi connected");
        Serial.print("[loop] IP address: ");
        Serial.println(WiFi.localIP());
        delay(5000);
    }
}


Lors de l'exécution j'ai des exceptions que je ne sais comment résoudre : ci-dessous le bavardage de la console
Code: Select alldébutConnecting to Livebox-b82e
[loop] no wifi
[loop] no wifi

Exception (0):
epc1=0x40226f9f epc2=0x00000000 epc3=0x00000000 excvaddr=0x00000000 depc=0x00000000

ctx: sys
sp: 3ffffb70 end: 3fffffb0 offset: 01a0

>>>stack>>>
3ffffd10:  40104921 4010491e ffffffff ffffffff 
3ffffd20:  400005e1 ffffffff ffffffff ffffffff 
3ffffd30:  40226f9f 00000033 0000001e ffffffff 
3ffffd40:  40104927 402357e0 00000000 00000001 
3ffffd50:  fbf8ffff 04000002 3feffe00 00000100 
3ffffd60:  0000001a 00000018 04000102 40104908 
3ffffd70:  3fffc100 3ffe97ac 00000000 00000000 
3ffffd80:  ffffffff ffffffff ffffffff ffffffff 
3ffffd90:  ffffffff ffffffff ffffffff ffffffff 
3ffffda0:  ffffffff ffffffff ffffffff ffffffff 
3ffffdb0:  ffffffff ffffffff ffffffff ffffffff 
3ffffdc0:  ffffffff ffffffff ffffffff ffffffff 
3ffffdd0:  ffffffff ffffffff ffffffff ffffffff 
3ffffde0:  ffffffff ffffffff ffffffff ffffffff 
3ffffdf0:  ffffffff ffffffff ffffffff ffffffff 
3ffffe00:  00000005 00000000 00000020 40100ec6 
3ffffe10:  3ffe8ed5 401042c3 3ffec960 ffffffff 
3ffffe20:  40104921 4010491e 3ffed050 ffffffff 
3ffffe30:  400005e1 000a0f4f 3ffed360 40101db2 
3ffffe40:  40222a80 00000030 0000001e 00000001 
3ffffe50:  40221c5c 00000000 3ffe97b6 3ffed42c 
3ffffe60:  00000018 00000018 00000050 00000000 
3ffffe70:  00000000 3ffe8ed5 3ffe8ed0 3ffe9136 
3ffffe80:  3ffe97a0 3ffe97ac 00000000 00000000 
3ffffe90:  3fffc278 40101f8c 3fffc200 00000022 
3ffffea0:  3ffe975c 40214f8f 3ffed2ac 000a077a 
3ffffeb0:  40000f68 00000030 0000001e ffffffff 
3ffffec0:  40000f58 00000000 00000020 00000000 
3ffffed0:  3ffe8d84 00000000 00000000 3ffe8004 
3ffffee0:  00000001 3ffe8ed0 00000000 3fffdab0 
3ffffef0:  00000000 3fffdcc0 3ffe8fb0 00000030 
3fffff00:  3ffee190 3ffedae0 3ffed330 40209308 
3fffff10:  00000000 00030490 4021897f 3ffedaa8 
3fffff20:  3ffedae0 000a077a 60000600 3ffefa68 
3fffff30:  3ffee978 00000164 00000164 4010020c 
3fffff40:  40221c5c 00000000 3ffe97a0 3ffe97ac 
3fffff50:  00000000 00000001 4010420e 40106e7c 
3fffff60:  3ffed050 3ffe97b6 00000001 40221511 
3fffff70:  3ffec960 3ffe97a0 3fffdcc0 3ffe8fb8 
3fffff80:  00000050 3ffec960 00000002 00000000 
3fffff90:  40220e63 3fffdab0 00000000 00000004 
3fffffa0:  3ffe8fb8 40000f49 3fffdab0 40000f49 
<<<stack<<<

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

load 0x4010f000, len 1384, room 16
tail 8
chksum 0x2d
csum 0x2d
v614f7c32
~ld

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

load 0x4010f000, len 1384, room 16
tail 8
chksum 0x2d
csum 0x2d
v614f7c32
~ld

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

load 0x4010f000, len 1384, room 16
tail 8
chksum 0x2d
csum 0x2d
v614f7c32
~ld
débutConnecting to Livebox-b82e


If anyone can help me: with all my thanks

cordially