1. 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
  2. 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
  3. 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
  4. 20 Jan, 2016 1 commit
  5. 04 Jan, 2016 1 commit
  6. 03 Jan, 2016 2 commits
  7. 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
  8. 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
  9. 06 Nov, 2015 1 commit
  10. 05 Nov, 2015 1 commit
  11. 04 Nov, 2015 3 commits
  12. 12 Oct, 2015 1 commit
  13. 31 Aug, 2015 1 commit
  14. 14 Jul, 2015 2 commits
  15. 10 Jul, 2015 1 commit
  16. 03 Jul, 2015 1 commit
  17. 27 Jun, 2015 1 commit
  18. 24 Jun, 2015 1 commit
  19. 01 Jun, 2015 2 commits
  20. 23 May, 2015 1 commit
  21. 20 May, 2015 1 commit
  22. 18 May, 2015 1 commit
  23. 12 May, 2015 5 commits
  24. 11 May, 2015 4 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
    • dnc40085's avatar
      minor change to wifi.sta.config() · c6c8bd84
      dnc40085 authored
      c6c8bd84
  25. 09 May, 2015 3 commits