Example sketches for the new Arduino IDE for ESP8266

Moderator: igrr

User avatar
By igrr
#12862
Mikejstb wrote:- then I need ESPtool to download to my ESP
- which needs PySerial
- which needs Python (apparently 2.7, NOT 3.whatever)


Why did you need ESPtool? The esptool binary which doesn't need Python is already bundled with the IDE. You can select the serial port and click "upload", that should work right from the IDE.

Regarding the WDT issue for interval >60 seconds, let me check. Might be some keep-alive issue. How are you setting the interval, exactly?
User avatar
By Mikejstb
#12865 I thought I needed esptool because the github instructions said so.
I followed the trail to find the PubSubClient api, that's been helpful.
I'm setting keep alive timeout in PubSubClient.h
#define MQTT_KEEPALIVE = 600

That seems to be OK, it seems to be the WDT that's unhappy.
I have worked around by some nested for loops with delay(10000) but I'd like to know how to clear or reset WDT anyway.

Thanks again
User avatar
By ohra
#12874 When I try to flash the example I get this error:

Uploading 36000 bytes from /var/folders/40/yc3_myl96nx8r1qjdktqx6g00000gn/T/build48107630783144789.tmp/mqtt_test.cpp_00000.bin to flash at 0x00000000
error: failed reading byte
warning: espcomm_cmd: cant receive slip payload data
warning: espcomm_send_command(FLASH_DOWNLOAD_BEGIN) failed

What might be going wrong? I've previously succesfully flashed the same ESP with the Python esptool.