Questions with regards to ESP8266 Basic and hardware interfacing and control via Basic commands

Moderator: Mmiscool

User avatar
By Scugnizzo
#73258 Hi all,
In ESP BASIC, via TIMER command it's possible to periodically run a branch. Is possible to know current timer value? In other words can I know how many milliseconds have passed from the start of the timer ?
Thank you
User avatar
By nedudgi
#73396
Scugnizzo wrote:Hi all,
In ESP BASIC, via TIMER command it's possible to periodically run a branch. Is possible to know current timer value? In other words can I know how many milliseconds have passed from the start of the timer ?
Thank you

Take a look at the millis() function. You can save the value to a variable, and subtract later.