Commit Graph

335 Commits

Author SHA1 Message Date
Marcel Stör 4ce2d68301 Add missing period 2017-07-01 18:32:44 +02:00
Gregor Hartmann 15b4fa24fd Call HTTP callback in all cases (#2020)
* fix 2007 Call callback in all cases, call callback with errorcode -1 if no connection could be establioshed
* change logging from ERR to DEBUG
* make debug output more clear (hopefully)
* add handling of errors to docs, note error handling on every call instead of only in the main documentation
2017-07-01 18:29:54 +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 e90ffb4266 Add mcp4725 module (#1966) 2017-05-21 16:30:26 +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
Arnim Läuger 7dae5236e6 Deprecate xyz.init() in favor of xyz.setup(), removing inherent i2c configuration (#1887) 2017-05-21 16:17:29 +02:00
Arnim Läuger 787379f0f5 Merge branch 'master' into dev 2017-05-21 09:34:31 +02:00
dnc40085 447fcd397d Exposed wifi event OPMODE_CHANGED. (#1967) 2017-05-15 09:05:22 +02:00
fetchbot faefc09595 add ads1115 module (#1942)
* add ads1115 module

* replace os_delay with os_timer

* typo
2017-05-07 09:49:57 +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
Marcel Stör 201ba9c959 Put functions in alphabetical order 2017-04-30 20:08:37 +02:00
fetchbot 8668239640 add si7021 module (#1921)
* add si7021 module

* add settings function for resolution and heater
2017-04-27 23:16:33 +02:00
dnc40085 9dbae1c963 Expose UART 1 (#1934)
* Expose UART 1 and update uart module documentation
2017-04-24 22:06:54 +02:00
dnc40085 f5fac7a19e Updated documentation and example for wps.start() (#1933) 2017-04-24 09:59:30 +02:00
Marcel Stör 572e4235fb Unwind bit.ly link 2017-04-22 22:57:37 +02:00
Marcel Stör ef1654fa1e Add 'connection: close' note 2017-04-21 07:49:27 +02:00
Metin KOC 9d11543fa9 Hdc1080 Module Add (#1880)
* Hdc1080 Module Add

* for Float/Integer Build fixes

* disable module for default

* document fix

* Deprecate init() in favor of setup()

* Fix grammar and code sample

* Deprecate init() in favor of setup()

* Update hdc1080.md

* Update hdc1080.md

* Mini fix

* Update user_modules.h
2017-04-20 22:23:51 +02:00
tjhowse d777fdc50a Add module for TCS34725 colour sensor. (#1895)
* Add module for TCS34725 colour sensor.

* Fix implicit return.

* Fix timer disarm after init completion callback.

* Rework init() into setup() as per PR#1887.

* Add new module to mkdocs and user_modules.

* Fix unclear debug messages.

* Documentation updates.

* Cleanup comments and formatting.

* Don't auto-enable the sensor.

* Add callback function to enable.

* Simplify Read16.

* Remove Lua state argument to enable callback.

* Remove self_ref.
2017-04-19 20:16:27 +02:00
flip111 3f787ac421 Update telnet link (#1918) 2017-04-18 21:04:36 +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
Arnim Läuger b1dcb70593 File doc fix (#1905)
* clarify differing command support for spiffs and fatfs
* fix toc
2017-04-10 23:02:20 +02:00
dnc40085 b2cbf52a4b Fix error in documentation added with merge of PR#1231 (#1901) 2017-04-05 06:57:10 +02:00
Philip Gladstone 66ffa6cdc4 Fix the error callback from not being called sometimes (#1683)
* Fix the error callback from not being called sometimes
* Moved the setting of the reconnect status to after the connack is recevied
* Increase the irom0_seg size
* Updated the documentation
* Make it clearer that autoreconnect is deprecated
2017-04-04 22:22:04 +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
Valera 22e1adc4b0 Small fix in docs (#1897)
dscription -> description
2017-04-03 13:34:32 +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
Philip Gladstone b09cac058a Add support for streaming JSON encoder/decoder (#1755)
Replaces the problematic cjson module.
2017-03-22 11:24:32 +11:00
thirschbuechler b6ef1ffee7 Add 7bit address info (#1834) 2017-03-20 21:30:43 +01:00
Arnim Läuger 25f433a6c6 typo fixes 2017-03-15 23:12:57 +01:00
Johny Mattsson 45ae795739 Extend node.dsleep() to support instant sleep. (#1859) 2017-03-14 10:49:41 +01:00
Marcel Stör e8d5a05952 Document that the socket receive event is fired for every frame, fixes #1849 2017-03-09 22:19:18 +01:00
FrankX b4319bdb4b Add driver for XPT2046 touch controller (#1848) 2017-03-09 07:20:01 +01:00
Yury Popov 466c03d90f Deprecation messages for convenient net.create(Server/Connection) calls (#1844) 2017-03-07 20:50:32 +01:00
Luís Fonseca fcc91967f9 Improve wifi documentation - prefer constants to hardcoded values (#1837) 2017-03-07 07:04:39 +01:00
Arnim Läuger f577c2c080 Sync uart configuration to Tx FIFO level (#1806)
* sync uart configuration to tx fifo level

* poll tx fifo empty before disabling interrupts

* echo parameter is optional for uart.setup()
2017-03-01 12:41:56 +01:00
Arnim Läuger 8931f09ce4 Fix missing return code for ws2812_init() (#1816) 2017-02-24 21:20:09 +01:00
vsky 0349c1e004 Improve BME280 code samples for negative values (#1794) 2017-02-12 17:08:02 +01:00
Marcel Stör b26ed97246 Improve MQTT client example, fixes #1792 2017-02-12 17:04:37 +01:00
Arnim Läuger 4dbf979cb4 Document HSPI pin functions (#1790) 2017-02-10 21:48:32 +01:00
Marcel Stör a21c3d3b11 Fix markdown syntax 2017-02-09 21:01:47 +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
Arnim Läuger 416d53eb39 Add string support for spi.set_mosi() and spi.get_miso() (#1753)
clean-up endianess handling in spi driver
2017-02-06 13:55:26 +01:00
Yury Popov 2c8961d153 Add TTL support to net module (#1756) 2017-02-06 13:54:20 +01:00
Marcel Stör 0ca4b6ba55 Add more UDP documentation, contributes to #1701 2017-02-01 20:59:43 +01:00