My esp8266 it´s having an error to connect when i write his code:A fatal error occurred: Failed to connect to ESP8266: Timed out waiting for packet header

finally found the solution in another thread !

I added one line in platformio.ini
board_upload.resetmethod = nodemcu
now working perfectly.

[env:esp01_1m]
platform = espressif8266
board = esp01_1m
framework = arduino
board_upload.resetmethod = nodemcu
1 Like