-->
Page 1 of 1

Purpose and use of ESP.updateSketch()

PostPosted: Wed Aug 05, 2015 12:57 am
by kolban
Examining the code, there appears to be a method called ESP.updateSketch(). Unfortunately, I'm not finding any docs on its purpose or how to use it. Does anyone have a comprehension of its function and how to use?

Neil

Re: Purpose and use of ESP.updateSketch()

PostPosted: Wed Aug 05, 2015 7:02 am
by CptanPanic
It has something to do with OTA's, as seen below, but is not the method used in the main example which is second.
https://github.com/esp8266/Arduino/blob ... Update.cpp

https://github.com/esp8266/Arduino/blob ... no_OTA.ino

Re: Purpose and use of ESP.updateSketch()

PostPosted: Wed Aug 05, 2015 10:48 am
by kolban
Howdy CptanPanic,

I think this is the source file/function I am talking about ... it is exposed through the ESP class ...

https://github.com/esp8266/Arduino/blob ... pdater.cpp

Neil