Commit Graph

51 Commits

Author SHA1 Message Date
dnc40085 9af4f58417 Added functions wifi.getcountry() and wifi.setcountry() (#2330) 2018-03-31 09:06:18 +02:00
Marcel Stör c8d2937fd5 Fix invalid table item key
Fixes #2275
2018-02-26 23:21:23 +01:00
Philip Gladstone ceadd30bca Add support for the wifi monitor mode in the SDK (#2204) 2018-01-10 21:24:41 +01:00
Marcel Stör 368c25db8b
Add WiFi mode documentation (#2191) 2017-12-17 15:48:57 +01:00
Marcel Stör a037e842b3 Enhance setmaxtxpower description 2017-11-19 20:21:29 +01:00
Mark Deneen 4af68d8360 WiFi method to adjust maximum TX power (#2171) 2017-11-19 20:00:20 +01:00
Mark Deneen b2ce0e8581 fix example which is not intended to write to flash, but actually was (#2174) 2017-11-18 22:40:36 +01:00
Marcel Stör ded599f8ba Add missing admonitions (#2107)
Amends #2064
2017-10-19 10:00:41 +02:00
dnc40085 7946deadab Added boolean return value for wifi.sta.sethostname (#2079)
- simplified wifi_change_default_host_name
- refactored code that checks hostname for compliance
2017-09-15 22:38:35 +02:00
dnc40085 9edcce5b44 Update wifi.sta.config to save configuration to flash by default (#1998) 2017-07-08 22:51:33 +02:00
dnc40085 2e33abe198 Modify wifi.sta.get*config() to return AP's MAC (#2026)
* Modified wifi.sta.get*config() to return AP's MAC even if bssid_set==0
* Improved documentation for wifi.sta.getapinfo, fixes #2025
2017-07-08 22:49:02 +02:00
dnc40085 4095c26bd0 Update documentation for wifi.sta.setaplimit() (#2017) 2017-06-28 10:02:09 +02:00
dnc40085 2c553583ea Fixed incorrect documentation for wifi.sta.setaplimit (#1986) 2017-05-24 09:37:21 +02:00
dnc40085 169cb69ee2 Add event callbacks to wifi.sta.config() and wifi.ap.config() and more (#1903)
* Add event callbacks to wifi.sta.config() and wifi.ap.config() and more

Added option to register event callbacks during configuration of both
station and AP.
Added option to register event callbacks to `wifi.sta.connect()` and
`wifi.sta.disconnect()`

* Add note about event registration to wifi module documentation

Other minor changes to wifi documentation are also included

* Add more detail to documentation for wifi.sta.config()
2017-05-21 16:18:56 +02:00
dnc40085 7b1f0223ad Removed wifi station event monitor (#1900)
The following functions were removed:
 - `wifi.sta.eventMonReg()`
 - `wifi.sta.eventMonStart()`
 - `wifi.sta.eventMonStop()`
 
The corresponding documentation has also been removed

This PR addresses issue #1893
2017-05-21 16:17:54 +02:00
dnc40085 447fcd397d Exposed wifi event OPMODE_CHANGED. (#1967) 2017-05-15 09:05:22 +02:00
dnc40085 cba40213c6 Update AP_PROBEREQRECVED example message (#1956)
The example for the eventmon registration for AP_PROBEREQRECVED was displaying "STATION DISCONNECTED" when it should say "PROBE REQUEST RECEIVED".
2017-05-06 12:32:56 +02:00
dnc40085 e491f4b743 Update init.lua example to use new wifi.sta.config() implementation (#1953)
* Update init.lua example in upload.md with new station config format
* Fixed typo in description of wifi.eventmon.register()
* Fixed typo and improved example init.lua in docs/en/upload.md
2017-05-05 13:28:45 +02:00
dnc40085 84c5275c37 Moved the documentation for wifi.nullmodesleep to the correct spot (#1913) 2017-04-17 13:45:32 +02:00
dnc40085 971627f3d3 Fix admonition formatting error in wifi module docs added with #1910 (#1912)
* Fix admonition formatting error in wifi module docs added with #1910

Modified documentation for:
  wifi.suspend()
  wifi.resume()

* More wifi documentation changes
2017-04-17 08:27:12 +02:00
dnc40085 039026995a Update wifi suspend documentation (#1910)
* Added message about potential for wifi crashes and more

Added message about potential for wifi crashes caused by long running
functions

Modified description for wifi.resume() and wifi.suspend()
2017-04-16 19:38:08 +02:00
dnc40085 b2cbf52a4b Fix error in documentation added with merge of PR#1231 (#1901) 2017-04-05 06:57:10 +02:00
dnc40085 41a5736d78 Add wifi.suspend() and node.sleep() (#1231)
* Exposed forced sleep API and more
Added timer suspend functionality
* wifi.suspend
* wifi.resume
* node.sleep 
* tmr.suspend
* tmr.suspend_all
* tmr.resume
* tmr.resume_all
* Implement timer suspend functionality
* Fix for uart TX glitch
* Made some modifications to the error reporting
2017-04-04 21:31:06 +02:00
Marcel Stör 176443c07f Admonition style fix 2017-04-04 20:42:31 +02:00
dnc40085 50a5c02119 Deprecate wifi.sta.eventMonReg (#1889)
* Update wifi event monitor documentation

Added a note to `wifi.eventmon.register()` and `wifi.sta.eventmonreg()`
* Add deprecation note to `wifi.sta.eventMonReg()`
2017-03-31 09:48:04 +02:00
Luís Fonseca fcc91967f9 Improve wifi documentation - prefer constants to hardcoded values (#1837) 2017-03-07 07:04:39 +01:00
Jason Follas 2ab28df92a Support clearing WiFi config (#1761)
* Add wifi.sta.clearconfig(). Adjust password validation to match 2.0.0 SDK rules (no min length enforced, i.e. for WEP)
* Updat comments about WEP key not having a minimum
* Documentation: add note about node.restore() to wifi.sta.clearconfig() docs, and add SDK verbiage to describe what node.restore() impacts.
* Normaliz if statements
* Convert leading tabs to leading spaces for consistency
2017-02-08 21:42:29 +01:00
Marcel Stör 9dfedaf55c Fix admonitions in WiFi docs 2017-01-01 17:32:29 +01:00
Marcel Stör 007f870cb6 Fix list indentation 2016-12-29 09:23:06 +01:00
Marcel Stör 1452fbfd13 Fix list formatting 2016-12-23 13:43:52 +01:00
Marcel Stör 680d349039 Fix list formatting 2016-12-23 12:59:46 +01:00
dnc40085 73773fd8a5 Update to the wifi module (#1497)
* 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
2016-11-06 20:51:01 +01:00
dnc40085 3328c66f2c Add function `wifi.nullmodesleep()` (#1475)
Enable auto sleep in NULL_MODE by default.
2016-08-27 11:46:24 +02:00
snosrap 8cd5e02634 Fixed `STA_DISCONNECT` typo (#1430) 2016-07-31 23:09:16 +02:00
Marcel Stör 0bbce6f845 Set admonition types correctly (subjective) 2016-07-14 22:52:30 +02:00
Marcel Stör 3a7f01bb66 Fix documented MAC address format of wifi.sta.getmac() 2016-06-29 22:46:34 +02:00
Marcel Stör ed679a7263 Correct WiFi auth constants in docs, fixes #1360 2016-06-21 22:13:26 +02:00
Konrad Beckmann 65e83fd2f4 Fixed typo in wifi doc (#1337)
Changed wifi.getpymode() into wifi.getphymode()
2016-06-04 15:33:58 +02:00
dnc40085 1b4234e2d3 Add details to WiFi module documentation (#1294)
Update descriptions of `wifi.setmode`, `wifi.sta.config` and `wifi.ap.config` to inform user of configuration persistence.
2016-05-14 23:04:20 +02:00
dnc40085 526f5457a2 Fixed some errors in wifi documentation (#1279)
Changed Parameters in `wifi.sta.status()` to match constants in source.

Fixed typo in example for `wifi.eventmon.register()`.
2016-05-02 13:57:18 +02:00
Marcel Stör 8dbbe40fb8 Improve docs wrt to auto-connect vs connect, addresses #1273 2016-04-29 19:21:25 +02:00
dnc40085 5e9ab01523 Modified wifi module
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
2016-03-31 19:01:41 -07:00
dnc40085 7def6ec7cf fix for #1065
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)
2016-03-13 09:51:48 -07:00
Marcel Stör 202cc1a12a Add meta-info block to every module doc page 2016-03-06 08:56:28 +01:00
Marcel Stör f087908d62 Disable SmartConfig by default 2016-03-01 21:32:24 +01:00
San 598b098184 Fix example code in WiFi Module Doc 2016-01-20 09:34:45 +08:00
Marcel Stör 96a05dcd41 Fix syntax for optional parameters for a few modules 2016-01-17 14:14:34 +01:00
Marcel Stör b03a669683 Add documentation for new wifi functions 2016-01-15 23:06:09 +01:00
Marcel Stör e1733f8d3a Remove extra comma in wifi docs 2016-01-15 00:00:49 +01:00
Marcel Stör 6480ba7282 Complete wifi docs transition 2016-01-14 23:27:38 +01:00