在gizwits_product.h里
/**
* Gagent minor version number for OTA upgrade
* OTA hardware version number: 00ESP826
* OTA software version number: 040206xx // "xx" is version number defaults to "25", consistent with the Gagent library version
*/
#define SDK_VERSION "27"
其中00ESP826是要填的硬件版本号,040206xx是软件版本,“xx”为下面定义的27,其他就是改APP=1还是2.
OTA升级版本记得要比27大,改为28再编译生成。这是我的esp8266 SOC使用方法