I think I did a mistake in my code, because now I see the cb function behaving as a closure, so sorry for the noise.
However, I don't understand the code in the function AT.cmd :
if more info is awaited, "return cb". What does exactly this code ? How returning cb function makes the callback retriggered again. Sorry for this neophyte question...
Thanks a lot
GeekBot
Espruino is a JavaScript interpreter for low-power Microcontrollers. This site is both a support community for Espruino and a place to share what you are working on.
I think I did a mistake in my code, because now I see the cb function behaving as a closure, so sorry for the noise.
However, I don't understand the code in the function AT.cmd :
if more info is awaited, "return cb". What does exactly this code ? How returning cb function makes the callback retriggered again. Sorry for this neophyte question...
Thanks a lot
GeekBot