ESP8266 module name #5637
Replies: 1 comment
-
Posted at 2017-02-06 by @MaBecker Hi @Questdoino, Wifi and ESP8266 are internal modules. Please check ESP8266_WifiUsage to figure out how to use the module Wifi on ESPs. Posted at 2017-02-06 by DrAzzy Are you using the ESP8266 to provide WiFi to another device running Espruino, or are you running Espruino on the ESP8266 itself? Posted at 2017-02-07 by Questdoino I`m trying to use it itself Posted at 2017-02-07 by Questdoino Ok, start from the beginning. At last flashed boot 1.6 and 1.91 firmware but this code doesn`t work
ESP stays in default AP mode, doesnt connect to "mySSID" AP and cant find wifi.setIP function
The IDE warns that Wifi module not found. Where is it located? Posted at 2017-02-07 by Wilberforce There is no setip function for the esp8266 wifi.
Use the code from the example page - the wifi ip will get echoed to the console.. Posted at 2017-02-07 by Questdoino
In reference there is setIP function Posted at 2017-02-07 by Wilberforce Good luck. Posted at 2017-02-07 by Ollie
That Your module not found message is not unusual. To test loaded, load the above code in the IDE from right hand side. Then in left hand side key:
You should get a return from that to indicate module was found and loaded and then can proceed to connect and subsequently save your wifi settings for easy connect at boot. Posted at 2017-02-07 by Questdoino As I see, ESP8266 with Espruino onboard cant work in station mode without DHCP on AP enabled? ((( Posted at 2017-02-07 by @MaBecker You have to wait until the next release, or fetch a travis build or build the firmware by your own. There have been added two functions to ESP8266 Wifi: Posted at 2017-02-07 by Ollie If I follow, you mean you can't consistently find it? Well you can jump on your router and reserve the IP address? That's what I do. Next time it boots you'll know its IP which is great for servers and connecting over Telnet. Posted at 2017-02-07 by Ollie Ah so Posted at 2017-02-07 by @MaBecker Yep and |
Beta Was this translation helpful? Give feedback.
-
Posted at 2017-02-06 by Questdoino
In any tutorial of using ESP8266 written that the module should be called like that
But there is no Wifi.js in http://www.espruino.com/modules directory. And the terminal callback
confirms that
I assume that we need ESP8266WiFi.js, but the module crashes with
trying to complete a simple task
Function wifi.setIP is defined in reference but there is no such function in module.
What I`m doing wrong?
Beta Was this translation helpful? Give feedback.
All reactions