I have various version of the NodeMCU and it appears that using the same programming code, the different NodeMCU versions respond differently. I want to be able to detect the firmware so I can use that in the code to correct the behaviour, depending on the firmware. The NodeMCU documentation describes the node Module which has the .info() function. For programming I'm using the Arduino IDE and I cannot access this node Module, however. The ESPClass, available in the Arduino IDE gives some of the variables however NOT the firmware version.
Is there a way to retrieve the firmware version from the NodeMCU using the Arduino IDE?