ESP8266 Wifi Shield get Version

Is there a way to do something like esp8266.getVersion to check the firmware in the library? I wanted to print the info to Serial for informational purposes. I see the AT commands in the docs, and I see a getVersion defined on the esp8266 class (I think, C++ is still very new to me), but when I try to do an esp8266.getVersion, it says there is no matching function call. Thanks in advance for the assistance, I’m just trying to get a handle on what functionality the library offers.

There’s a ESP8266_VERSION command in the library but I don’t see any example code that uses it.

Check line 34 [in this library file for more information.](SparkFun_ESP8266_AT_Arduino_Library/src/util/ESP8266_AT.h at master · sparkfun/SparkFun_ESP8266_AT_Arduino_Library · GitHub)

Nor did I, I also see a getVersion defined in the esp8266 class in SparkFunESP8266WiFi.h, but, my C++ skills are lacking, I am unable to make heads or tails of it.

Try this in a sketch :

/* display Firmware version information */
  char ATversion[35];
  char SDKversion[8];
  char compileTime[25];

  memset(ATversion,0,sizeof(ATversion));
  memset(SDKversion,0,sizeof(SDKversion));
  memset(compileTime,0,sizeof(compileTime));

  if (esp8266.getVersion(ATversion,SDKversion, compileTime) > 0)
  {
    Serial.print(F("ATversion   : "));
    Serial.println(ATversion);
    Serial.print(F("SDKversion  : "));
    Serial.println(SDKversion);
    Serial.print(F("CompileTime : "));
    Serial.println(compileTime);
  }