Start AP with hidden IP #5607
Replies: 1 comment
-
Posted at 2016-10-23 by ClearMemory041063 There is a flag (ssid hidden) for this listed in the AT commands for the ESP8266.
https://cdn.sparkfun.com/assets/learn_tutorials/4/0/3/4A-ESP8266__AT_Instruction_Set__EN_v0.30.pdf Posted at 2016-10-23 by CrashingDutchman Thank you for your reply, but I don't think I can use this with existing Espruino (JavaScript) functionality. Posted at 2016-10-23 by ClearMemory041063 Perhaps if you post your code we can figure out how to implement the AT commands that you need to hide the SSID.
Posted at 2016-10-23 by Kolban Looking at the source code, it doesn't appear to be implemented. This is where it should be: https://github.com/espruino/Espruino/blob/master/libs/network/esp8266/jswrap_esp8266_network.c#L704 It doesn't look horribly complicated to add. It seems that we would have to add a new property to the configuration of the parameters as an access point. From what I can see, the ESP8266 API does support the functional capability so really what would be required would be exposing that through Espruino. Posted at 2016-10-23 by ClearMemory041063 This link on the Espruino site talks about a StartAP function for ESP8266 http://www.espruino.com/ESP8266_WifiUsage Using the ESP8266 is not recommended in general because its functionality is very limited and you'll have to reconnect to the AP whenever something bad happens, but it's a handy mode if you're out on the road and don't have an AP you can use to get internet access. To get that going use: var wifi = require("Wifi"); Searching the ESP8266WiFi_0v25.js module there is no current startAP function implemented. One other issue is the Firmware and SDK version of the ESP8266 you are using. Older versions may not support some of the newest AT commands. This would involve flashing the chip to the newer version. Posted at 2016-10-24 by ClearMemory041063 Looking at a different module
Posted at 2016-10-24 by CrashingDutchman Would be nice if it could be added! Thank you @ClearMemory041063 and @Kolban for explaining! Posted at 2016-10-26 by CrashingDutchman @ClearMemory041063 I tried to use espruino.com/modules/EspruinoWiFi.js as source in a project in the Espruino WebIDE but I never got it to work. It seems that it is using pins A13 and A14 which are not supported on an ESP8266. When I used Fiddler to see where exactly a module is being loaded when I do a require("Wifi") I saw nothing being loaded from Internet. When you load another module, for example through a require("DS18B20), there is network traffic to http://www.espruino.com/modules//DS18B20.min.js So, I am not sure how to do this. If anyone can help me getting started, I would appreciate it very much! Posted at 2016-10-26 by @gfwilliams Are you attempting to do this entirely on an ESP8266 itself, or with an Espruino board + an ESP8266? The EsprunoWifi module is for the Espruino WiFi, and expects those extra pins to control whether the WiFi module is powered. For ESP8266+Espruino, the But if you're doing this on a raw ESP8266, it's going to need some tweaks in the C code @Kolban pointed at. Posted at 2016-10-26 by ClearMemory041063 Thanks Gordon for clarifying where the changes need to occur. from the Esp8266_at_instrunction_set_env1.5.4_0.pdf AT+ CWSAP – Configuration of softAP mode AT+CWSAP_CUR – Set configuration of softAP mode, won’t save to Flash ESP8266 softAP don’t support WEP. AT+ CWSAP_DEF – Set configuration of softAP mode, save to Flash Posted at 2016-10-26 by CrashingDutchman @gfwilliams I was going to do the change for ESP8266+Espruino, so I guess I need to be at ESP8266WiFi_0v25 module. Can you explain why I don't see that the require("Wifi") doesn't seem to generate any traffic to the modules folder on www.espruino.com? Posted at 2016-10-26 by @allObjects Some 'modules' are part of the Espruino binary and requiring them makes them accessible in JavaScript object / programming name space. Posted at 2016-10-26 by ClearMemory041063 If you are running Espruino on an ESP8266 the code is part of the binary flashed to the device and will require one of the ESP8266 GURUs to make the changes and recompile the code. If you are using the ESP8266 from another Espruino device through a serial port the code is in the module on the website. For ESP8266+Espruino, the ESP8266WiFi_0v25 module provides a function called createAP Posted at 2016-10-27 by @gfwilliams I think the Posted at 2016-10-27 by @allObjects If you cannot find the module in espruino.com/modules (and not in your IDE's sandbox/modules folder), it is a built-in module. Posted at 2016-10-31 by CrashingDutchman Finally found some time to pick this up again. Sending the sample in http://www.espruino.com/modules/ESP8266WiFi_0v25.js doesn't work. I understand that this was created for the Espruino on ESP8266. Correct? I am using a NodeMCU and it breaks on A2 and A3 (not defined). I converted the original line from the example to:
where it was:
The sample stops at
The sample code I used is:
It seems to break on the get() of www.espruino.com. Any ideas? Edit: I created an Espruino IDE project for this in a folder on a local drive. Posted at 2016-11-01 by @allObjects .espruino.com/modules/ESP8266WiFi_0v25.js was (initially) created for the combination of an original or PICO Espruino board - or similar - with no Wifi on-board and a (classic) ESP8266 (ESP-01). Espruino an ESP8266 are communicating with each other over serial USART. The version indicator 0v25 for the JS module on the Espruino side matches up with the version of the firmware on the ESP8266 - namely the AT commands and sequencing of the communication. With the advent of Espruino 'directly' on ESP8266 ESP-01 (and ESP-12 or a-like), Esruino uses a different, dedicated - bult-in module. The Espruino firmware / binary - which is flashed onto the ESP8266 - includes the Wifi stack of ESP8266. Posted at 2016-11-01 by CrashingDutchman Thank you @allObjects. I understand that I have no option to modify code for the Wifi to make the hidden SSID a possibility? One of the firmware maintainers has to do this? |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Posted at 2016-10-22 by CrashingDutchman
I don't see an option to start an ESP8266 with Espruino as access point with a hidden SSID? Would this even be possible?
Thanks!
Beta Was this translation helpful? Give feedback.
All reactions