- 06 Nov, 2016 1 commit
-
-
dnc40085 authored
* Removed inline documentation for several functions and update comments Since documentation is now part of the repository, the inline documentation just adds to the already huge wifi.c * Wifi module: add new functionality, update documentation Functions Added: wifi.getdefaultmode(): returns default wifi opmode wifi.sta.apchange(): select alternate cached AP wifi.sta.apinfo(): get cached AP list wifi.sta.aplimit(): set cached AP limit wifi.sta.getapindex(): get index of currently configured AP wifi.sta.getdefaultconfig(): get default station configuration wifi.ap.getdefaultconfig(): get default AP configuration functions modified: wifi.setmode: saving mode to flash is now optional wifi.sta.config: now accepts table as an argument and save config to flash is now optional wifi.sta.getconfig: added option to return table wifi.ap.config: save config to flash is now optional wifi.ap.getconfig: added option to return table Documentation changes: - Modified documentation to reflect above changes - Removed unnecessary inline documentation from `wifi.c` - Updated documentation for `wifi.sta.disconnect`to address issue #1480 - Fixed inaccurate documentation for function `wifi.sleeptype` - Added more details to `wifi.nullmodesleep()` * Move function `wifi.sleeptype()` to `wifi.sta.sleeptype()` * Fixed problem where wifi.x.getconfig() returned invalid strings when ssid or password were set to maximum length. * fix error in documentation for `wifi.sta.getapindex` * Renamed some wifi functions wifi.sta.apinfo -> getapinfo wifi.sta.aplimit -> setaplimit wifi.sta.apchange -> changeap also organized the wifi_station_map array
-
- 27 Aug, 2016 1 commit
-
-
dnc40085 authored
Enable auto sleep in NULL_MODE by default.
-
- 05 Jun, 2016 1 commit
-
-
dnc40085 authored
-
- 27 May, 2016 1 commit
-
-
dnc40085 authored
Moved call from `luaopen_wifi (wifi.c)` to `user_rf_pre_init (user_main.c)` Note: This change adds ~440 us to boot time
-
- 01 Apr, 2016 1 commit
-
-
dnc40085 authored
Implement SDK event monitor Move wifi status event monitor code into seperate file (app/modules/wifi_eventmon.c) Modify wifi lua callback registration code. Add Functions wifi.ap.deauth and wifi.sta.getrssi Rework wifi event monitor to use tasking interface fix for Lua coroutine compatibility issue Made changes Suggested by TerryE Also, moved code that sets the default host name out of luaopen_wifi_init and into a separate function and added a post_task_low entry in it's place. Replaced some if test then return error lines with luaL_argcheck Add check for malloc null return in wifi.eventmon to catch out of memory errors
-
- 13 Mar, 2016 1 commit
-
-
dnc40085 authored
Also changed wifi.sta.eventMonStop("unreg all") to wifi.sta.eventMonStop(1) and wifi.sta.eventMonReg(wifi.status, "unreg") to wifi.sta.eventMonReg(wifi.status)
-
- 26 Feb, 2016 1 commit
-
-
TerryE authored
AFAIK no one uses the wifi.startsmart() and wifi.stopsmart(). Removing them frees up an extra 20-25K of Flash to use as filesystem. So I have added a new config define WIFI_SMART_ENABLE which is enabled by default so the default functionality is the same, but if this is commented out then this code is omitted. I have also removed wofs and upgrade from this build as we no longer support these.
-
- 20 Jan, 2016 1 commit
-
-
Johny Mattsson authored
Plus boat-load of fixes to actually make that build.
-
- 04 Jan, 2016 1 commit
-
-
dnc40085 authored
-
- 03 Jan, 2016 2 commits
- 16 Dec, 2015 2 commits
-
-
Johny Mattsson authored
Module creation & registration now made a lot simpler. In essence, each module file is now self-contained and only needs a NODEMCU_MODULE(MYNAME, "myname", myname_map, luaopen_myname); line to both be automatically recognised by the Lua initialization as well as honor the LUA_USE_MODULES_MYNAME #define.
-
TerryE authored
carrying on Johny's edits as per my comments on #810
-
- 12 Dec, 2015 1 commit
-
-
Johny Mattsson authored
As per #810 & #796, only LUA_OPTIMIZE_MEMORY=2 & MIN_OPT_LEVEL=2 are supported when building. This commit effects that limitation. With this change modules/auxmods.h no longer needs to be updated for every new module, nor do module writers need to cater for a hypothetical LUA_OPTIMIZE_MEMORY < 2 scenario.
-
- 06 Nov, 2015 1 commit
-
-
dnc40085 authored
Remove unnecessary code
-
- 05 Nov, 2015 1 commit
-
-
dnc40085 authored
-
- 04 Nov, 2015 3 commits
- 12 Oct, 2015 1 commit
-
-
Johny Mattsson authored
Needs testing.
-
- 31 Aug, 2015 1 commit
-
-
Jakub authored
Fixed a bug which prevented from setting unprotected AP
-
- 14 Jul, 2015 2 commits
- 10 Jul, 2015 1 commit
-
-
Johny Mattsson authored
-
- 03 Jul, 2015 1 commit
-
-
vowstar authored
Espressif open-source android and iOs APP, See also https://github.com/espressifapp Note: Must use ESP-TOUCH-V021 in espressif app history.
-
- 27 Jun, 2015 1 commit
-
-
vowstar authored
added wifi.ap.getconfig() by @md5crypt https://github.com/nodemcu/nodemcu-firmware/pull/500/files#diff-81824fe90d00138d98b6e9f0d7d8c7dcL1458.
-
- 24 Jun, 2015 1 commit
-
-
Luna authored
-
- 01 Jun, 2015 2 commits
- 23 May, 2015 1 commit
-
-
dnc40085 authored
-
- 20 May, 2015 1 commit
-
-
dnc40085 authored
-
- 18 May, 2015 1 commit
-
-
dnc40085 authored
-
- 12 May, 2015 5 commits
- 11 May, 2015 3 commits
-
-
dnc40085 authored
-
dnc40085 authored
-
dnc40085 authored
wifi.sta.config (wifi_station_config): - range checking password length (8~64) wifi.ap.config (wifi_ap_config): - range checking ssid length (1~32) - range checking pwd length (8~64) - new params: - auth: wifi.OPEN, wifi.WPA_PSK, wifi.WPA2_PSK, wifi.WPA_WPA2_PSK - default WITH pwd: wifi.WPA_WPA2_PSK - default WITHOUT pwd: wifi.OPEN - channel: 1~13 (default: 6) - hidden: 0/1 (default: 0) - max: 1~4 (default: 4) - beacon: 100~60000ms (default: 100) wifi.ap.getclient (wifi_ap_listclient): - returns table(mac,ip) of all connected clients wifi.ap.dhcp: - new submodule - config (wifi_ap_dhcp_config), returns start/end ips - params: - start (e.g., "192.168.1.100") - end ip calculated from wifi.ap.config.max - start (wifi_ap_dhcp_start), returns boolean - stop (wifi_ap_dhcp_stop), returns boolean
-