I'm trying to "patch" the wifi-module with indianajones's example in my root file after importing the wifi-module, but I'm getting this error: Uncaught Error: Cannot read property 'cmd' of undefined. I understand the problem with the this reference and it makes perfect sense, but can someone give me a pointer on how to fix it?
As I understand it, I can't get my hands on the module source code because it's a "built-in" module (?), thats why I'm trying to extend it externally.
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.
Hey 🙂!
I'm trying to "patch" the wifi-module with indianajones's example in my root file after importing the wifi-module, but I'm getting this error:
Uncaught Error: Cannot read property 'cmd' of undefined. I understand the problem with the
this
reference and it makes perfect sense, but can someone give me a pointer on how to fix it?As I understand it, I can't get my hands on the module source code because it's a "built-in" module (?), thats why I'm trying to extend it externally.