1. 06 Nov, 2016 1 commit
    • dnc40085's avatar
      Update to the wifi module (#1497) · 73773fd8
      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
      73773fd8
  2. 27 Aug, 2016 1 commit
  3. 05 Jun, 2016 1 commit
  4. 27 May, 2016 1 commit
  5. 01 Apr, 2016 1 commit
    • dnc40085's avatar
      Modified wifi module · 5e9ab015
      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
      5e9ab015
  6. 13 Mar, 2016 1 commit
    • dnc40085's avatar
      fix for #1065 · 7def6ec7
      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)
      7def6ec7
  7. 26 Feb, 2016 1 commit
    • TerryE's avatar
      Make the wifi.smart functions options and remove wofs and upgrade · 46ea2aa4
      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.
      46ea2aa4
  8. 20 Jan, 2016 1 commit
  9. 04 Jan, 2016 1 commit
  10. 03 Jan, 2016 2 commits
  11. 16 Dec, 2015 2 commits
    • Johny Mattsson's avatar
      Reworked module registration, removed modules.h · 4e8ef87d
      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.
      4e8ef87d
    • TerryE's avatar
      Major cleanup of module registration pass 2. · b773290b
      TerryE authored
      carrying on Johny's edits as per my comments on #810
      b773290b
  12. 12 Dec, 2015 1 commit
    • Johny Mattsson's avatar
      Major cleanup of module registration. · 6b6456be
      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.
      6b6456be
  13. 06 Nov, 2015 1 commit
  14. 05 Nov, 2015 1 commit
  15. 04 Nov, 2015 3 commits
  16. 12 Oct, 2015 1 commit
  17. 31 Aug, 2015 1 commit
  18. 14 Jul, 2015 2 commits
  19. 10 Jul, 2015 1 commit
  20. 03 Jul, 2015 1 commit
  21. 27 Jun, 2015 1 commit
  22. 24 Jun, 2015 1 commit
  23. 01 Jun, 2015 2 commits
  24. 23 May, 2015 1 commit
  25. 20 May, 2015 1 commit
  26. 18 May, 2015 1 commit
  27. 12 May, 2015 5 commits
  28. 11 May, 2015 3 commits
    • dnc40085's avatar
      Added description to wifi_station_listap · aca2b772
      dnc40085 authored
      aca2b772
    • dnc40085's avatar
      cf54f855
    • dnc40085's avatar
      Copied changes from dev branch, commit f13c5c61 from Wayne Bartnick · 5b375cfe
      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
      5b375cfe