Executable segment sizes:
ICACHE : 32768 - flash instruction cache
IROM : 249268 - code in flash (default or ICACHE_FLASH_ATTR)
IRAM : 27369 / 32768 - code in IRAM (IRAM_ATTR, ISRs…)
DATA : 1496 ) - initialized variables (global, static) in RAM/HEAP
RODATA : 1316 ) / 81920 - constants (global, static) in RAM/HEAP
BSS : 25864 ) - zeroed variables (global, static) in RAM/HEAP
The sketch uses 279449 bytes (26%) of program storage space. Maximum is 1044464 bytes.
Global variables use 28676 bytes (35%) of dynamic memory, leaving 53244 bytes for local variables. Maximum is 81920 bytes.
esptool.py v3.0
Serial port COM6
Connecting…
Chip is ESP8266EX
Features: WiFi
Crystal is 26MHz
MAC: dc:4f:22:43:5b:f3
Uploading stub…
Running stub…
Stub running…
Changing baud rate to 460800
Changed.
Configuring flash size…
Auto-detected Flash size: 4MB
Compressed 283600 bytes to 207837…
Writing at 0x00000000… (7 %)
Writing at 0x00004000… (15 %)
Writing at 0x00008000… (23 %)
Writing at 0x0000c000… (30 %)
Writing at 0x00010000… (38 %)
Writing at 0x00014000… (46 %)
Writing at 0x00018000… (53 %)
Writing at 0x0001c000… (61 %)
Writing at 0x00020000… (69 %)
Writing at 0x00024000… (76 %)
Writing at 0x00028000… (84 %)
Writing at 0x0002c000… (92 %)
Writing at 0x00030000… (100 %)
Wrote 283600 bytes (207837 compressed) at 0x00000000 in 4.9 seconds (effective 465.2 kbit/s)…
Hash of data verified.
Leaving…
Hard resetting via RTS pin…
After pressing the RST button in the « Serial Monitor » I get this :
rll�r\u0002$\u0012�n\f\f\f�\fl�\fb|��\u0002\u0007\u0012�r\u0012b�\fb\u0004�nn\u0002lnn2b\fb\u001cp�$b\u000elrlp�n0\u0002\f\f�\fl\f�\u0002\f\f\fb\fn�n�\f�\u0004\fb��nn’l�\u0004l\u0002�\u0012\u0012nn\f$\u0002\u000e\u0002nr���n\f\frr�\u0002p�n0\u0002\f\fr�\u001c\u001cb\f\u0004\u0002\fb\fn�n\f\u0004\fb��nn'\f\u0004l\u0002�\u0012\u0012nn\f$\u0002\u000e\u0002nr���n\f\fr\u0012l\u0002\u000er��n\f\fr\u0012l\u0002�\u0002\f\f\f$�\f\u0002l\u0002��n�`\u0002
ets Jan ets Jan 8 2013,r
ESP.reset() is a hardware reset and can leave some of the registers in the old state, which can cause problems, it’s more or less like the reset button on a PC.
ESP.restart() tells the SDK to restart, so it’s a cleaner reboot, use that one if possible.
// Program connect_IP_auto.ino A. Oumnad
//============================================================== #include <ESP8266WiFi.h>
// Modify according to your WIFI access point
const char* mySSID = « Txxxx-xxxx-xxxx »;
const char* mypassword = « xxxxxxxxxxxxxxx »;
void setup() {
Serial.begin(115200); // for the serial monitor
Serial.println(« \r\n\r\n============================================ »);
// Connection to the access point
Serial.print(" Connexion à « );
Serial.println(mySSID);
WiFi.disconnect();
WiFi.mode(WIFI_STA);
WiFi.begin(mySSID, mypassword);
while (WiFi.status() != WL_CONNECTED) {
delay(500);
Serial.print( ».« );
}
Serial.println();
Serial.print( » Connecté à « );
Serial.println(mySSID);
// Display the IP address assigned by the access point
Serial.print( » L’adresse IP du ESP8266 est: « );
Serial.println(WiFi.localIP());
Serial.println( »==================================================");
}
void loop() {
} Result :
…
Connected to Txxxxx-xxxx-xxxx
The IP address of the ESP8266 is: 192.168.1.59
Is your sensor connected when you run this test code?
If so, it would seem that the problem comes from the initial code?
If not, a power supply problem?