Hello,
I am using the AT module, and the cmd function. I need to provide the AT command which leads to the call of the call back. I mean a signature like this : cb(d, ATcommand) or similar.
I am not expert in JS, but I guess that's a closure. Is it possible to make sure that the call back remembers the AT command which makes it called ?
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.
Hello,
I am using the AT module, and the cmd function. I need to provide the AT command which leads to the call of the call back. I mean a signature like this : cb(d, ATcommand) or similar.
I am not expert in JS, but I guess that's a closure. Is it possible to make sure that the call back remembers the AT command which makes it called ?
Thanks a lot
GeekBot