How does one find out what versions of the SDK is present short of guessing from what's in this forum (which suggests 1.5.2) ?
I have gone through the members/methods of esp, machine and sys but can't find anything.
Query SDK version number at runtime
Query SDK version number at runtime
Last edited by jms on Fri Jul 01, 2016 6:45 am, edited 2 times in total.
Re: Building ESP8266 port - tips, tricks, and updates
A safe method is brute force: delete the esp-open-sdk from your system and reinstall it using following the directions in https://github.com/micropython/micropyt ... /README.md.
Re: SDK version number at runtime
I see my question has been moved here.
I wasn't clear. I mean at runtime. I believe mine is almost certainly 1.5.2 but it really ought to be possible to query it.
For that matter it would be good to be able to find out the commit hash of micropython itself.
Jon
I wasn't clear. I mean at runtime. I believe mine is almost certainly 1.5.2 but it really ought to be possible to query it.
For that matter it would be good to be able to find out the commit hash of micropython itself.
Jon
Re: Query SDK version number at runtime
os.uname() will give the vendor SDK version as a "release" field. As for the building requirements, they are specified in http://forum.micropython.org/viewtopic.php?f=16&t=1689 .
Awesome MicroPython list
Pycopy - A better MicroPython https://github.com/pfalcon/micropython
MicroPython standard library for all ports and forks - https://github.com/pfalcon/micropython-lib
More up to date docs - http://pycopy.readthedocs.io/
Pycopy - A better MicroPython https://github.com/pfalcon/micropython
MicroPython standard library for all ports and forks - https://github.com/pfalcon/micropython-lib
More up to date docs - http://pycopy.readthedocs.io/
Re: Query SDK version number at runtime
You are right
I didn't think of checking the standard function uname(). I appear to have 1.5.4 .
Now I've worked it out (git-describe was new to me) 7053621 is a git hash and the 58 the number of commits since tag 1.8.1 .
Code: Select all
>>> os.uname()
(sysname='esp8266', nodename='esp8266', release='1.5.4(baaeaebb)', version='v1.8.1-58-g7053621 on 2016-06-17', machine='ESP module with ESP8266')
Now I've worked it out (git-describe was new to me) 7053621 is a git hash and the 58 the number of commits since tag 1.8.1 .