-->
Page 1 of 1

what is my esp firmware?

PostPosted: Sat Oct 22, 2016 1:45 am
by pra123
at


OK
at+GMR

AT version:0.60.0.0(Jan 29 2016 15:10:17)
SDK version:1.5.2(7eee54f4)
Ai-Thinker Technology Co. Ltd.
May 5 2016 17:30:30
OK

Re: what is my esp firmware?

PostPosted: Sun Oct 23, 2016 10:10 am
by mrburnette
For users programming via the ArduinoIDE, you would do something like this somewhere in setup()

Code: Select allSerial.printf("\n\nSDK version:%s\n\r", system_get_sdk_version());


Remember, the AT firmware is overwritten when the ArduinoIDE is installed; essentially there are two parts: the user's compiled sketch and the ESP8266 binary firmware to support the low-level API calls. If one wishes to restore the AT firmware, it must be uploaded using one of the several flash firmware programs.
http://www.esp8266.com/wiki/doku.php?id=loading_firmware

Ray

Re: what is my esp firmware?

PostPosted: Mon Oct 24, 2016 5:16 pm
by Jess
I'm using ArduinoIDE 1.6.9 and it gave me error...

This one works Serial.println(ESP.getSdkVersion());

Re: what is my esp firmware?

PostPosted: Tue Oct 25, 2016 2:19 pm
by martinayotte
Yes, because ESP.getSdkVersion() is a C++ function, while system_get_sdk_version() is a plain C that requires to include prototype from SDK the following way :
Code: Select allextern "C" {
#include "user_interface.h"
}