Commit Graph

609 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 98d5b127e0
Fix node.stripdebug level numbers (Lua vs. C)
Fixes #2302
2018-03-28 22:38:44 +02:00
devsaurus 519d6df62c update nodemcu version in README.md, build.md, flash.md 2018-03-24 11:13:13 +01:00
Philip Gladstone c7006dfb27 Ignore lookup errors on sync request unless all lookups fail (#2298) 2018-03-21 07:02:25 +01:00
TerryE 4ae52c232c Alpha working wersion for third party evaluation 2018-03-17 00:43:52 +00:00
TerryE 3d3eebfd67 Turn of x bit on some non-executable source files 2018-03-17 00:43:51 +00:00
Arnim Läuger 4367e6e9e0 remove deprecated init functions in adxl345, am2320, bme280, bmp085, hdc1080, hmc58831, l3g4200d, HDC1000, lm92 (#2276) 2018-03-12 07:56:07 +01:00
Nathaniel Wesley Filardo 5c8af3c452 Update mbedTLS to 2.7.0 (#2267)
* mbedtls 2.7.0 (mbedtls-2.7.0-0-g32605dc8)

Wholesale import, with a few changes from earlier preserved through.
Ideally we would soon get to the point of having no divergences from
upstream.

* tls: add function to adjust mbedTLS debug level
2018-03-03 23:28:26 +01:00
Marcel Stör c8d2937fd5 Fix invalid table item key
Fixes #2275
2018-02-26 23:21:23 +01:00
Philip Gladstone 97e34ce520 Fix a number of issues with the gpio.pulse family of functions (#2260)
* Fix some subtle timing issues with gpio.pulse
* Add the pulse:update method
* Allow getstate to work on stopped pulsers
* Make gpio.mode(, gpio.OUTPUT) actually set the output mode
* Added some more documentation
2018-02-23 23:12:23 +01:00
Marcel Stör 1117e9ea65 Add tiny SQLite example 2018-02-15 23:37:11 +01:00
Marcel Stör 0bf035aadc Fix gpio.pulse admonition 2018-02-15 07:10:20 +01:00
Marcel Stör 8d2c523aab Fix WS2812 effects documentation 2018-02-13 12:34:04 +01:00
Marcel Stör f404627428 Mention that PyFlasher now offers .dmg for macOS 2018-02-12 12:58:51 +01:00
Marcel Stör 5c65f2790d Remove custom favicon from docs
All the changes are in preparation for an eventual MkDocs 0.17 upgrade
2018-02-11 23:22:15 +01:00
Pawel Jasinski 2a944026c5 introduced sign into read and startread (#2246)
in float build, uV and sign are included in mV
in int build, uV and mV are absolute, sign is -1, 0, 1
added rounding of uV values
added optional test function
2018-02-07 21:29:17 +01:00
Marcel Stör 555b5574a2 Add sjson streaming example
Fixes #2209.
2018-02-04 12:45:27 +01:00
Pawel Jasinski f87d68ff8f added support for ads1015 (#2231)
* ads1015 is supported, up to 4 devices can be connected at the same time

* removed debug, updated documentation

* changed to oop API

* added __gc to handle active timer cleanup

* reworked argument validation and error reporting

* stack is no longer messed up after __del
2018-01-29 22:21:16 +01:00
Konrad Hübner ed56d949ee ws2812 effects library (#2215)
* ws2812 effects and color utils modules added

* Added documentation for new modules to mkdocs.yml

* changed mode option to string, documentation, default modules fixed

* updated user_modules.h
2018-01-23 21:05:04 +01:00
Marcel Stör 316a5fc566 With RTD the JS search seems no longer necessary 2018-01-21 23:58:58 +01:00
Luiz Felipe Silva df930c2d03 Add sqlite3 module (#2008)
* add final sqlite3 patch
* remove unused defines, join caching code with esp vfs code to reduce exported symbols and shrink final file size
* Modules should by default be disabled and in alphabetical order
2018-01-10 22:45:56 +01:00
Philip Gladstone ceadd30bca Add support for the wifi monitor mode in the SDK (#2204) 2018-01-10 21:24:41 +01:00
Philip Gladstone 77fe51050a Addition of gpio.pulse functions (#2190) 2018-01-10 21:08:39 +01:00
Arnim Läuger 0e491e869f remove guidance to fall back to 1.5.4.1 for 512Kb modules (#2222) 2018-01-10 07:17:12 +01:00
Marcel Stör e0f811dd2b Fix the use of the term "Lua" 2017-12-25 11:40:33 +01:00
Marcel Stör 3747d7cbe0 Minor update flashing docs 2017-12-18 21:54:41 +01:00
Philip Gladstone 9aebc84b72 Add support of counting of interrupts (#2149)
* Add support of counting of interrupts

* Update the timestamp when interrupt happens during dispatch. Also
clear out interrupts when setting up a new callback
2017-12-17 21:42:54 +01:00
Marcel Stör 368c25db8b
Add WiFi mode documentation (#2191) 2017-12-17 15:48:57 +01:00
Philip Gladstone ef91580c7b Addition of a Bloom Filter object (#2176)
* Initial checkin
* Add bloom.md into mkdocs
* Added reset and improved info
* Update bloom.c
* Update bloom.md
* Add Wikipedia link
2017-12-03 13:10:59 +01:00
Lukáš Voborský 87a6a9bdb9 Add BME680 module (#2151) 2017-11-19 20:49:07 +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
dbaumgarten ec6ed6f868 Better documentation for mqtt:lwt() (#2128) 2017-10-06 00:31: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
Marcel Stör 4324ea0dcd Correct typo
Fixes #2103
2017-09-14 20:46:22 +02:00
Marcel Stör ce1712d1c1 Add additional note wrt rtctime 2017-08-31 22:57:32 +02:00
Marcel Stör ee3d72f5f2 Fix markdown syntax 2017-08-31 22:55:11 +02:00
Marcel Stör 9f022e9856 Manually applying changes from #2093 2017-08-31 22:46:57 +02:00
Marcel Stör 082015ebdc Add doc link for bootreason EXCCAUSE 2017-08-27 21:26:14 +02:00
Marcel Stör 0a11e84f36 Add note to BME280 docs
A delay is required between `setup` and reading from sensor.

Fixes #1994.
2017-08-22 22:22:36 +02:00
Marcel Stör 003c2453c3 Add note to mqtt:subscribe
Fixes #2039
2017-08-22 22:05:24 +02:00
Marcel Stör c4440e47ba Link ds18b20 C/Lua module docs 2017-08-16 21:32:04 +02:00
fetchbot d079b842a8 add ds18b20 module (#2003)
* add ds18b20 module
* add intitial eeprom value definition
* adjust read() function and address handling
2017-08-16 21:04:23 +02:00
wolfg 61562b45bd Fix typo in code sample (#2063) 2017-08-05 22:10:49 +02:00
Philip Gladstone d93465cd86 Add tracking and control of the rate error in the clock crystal. (#1697)
* Improve RTC timekeeping -- includes clock rate tracking
* Improved division by 1M
* Fix crash in sntp
* Disable RTC debug
* Get the offset correct
* Add comments on where the mysterious numbers came from
* Fix a crash with auto repeat mode and errors on repeat
2017-07-18 22:51:20 +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
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
Marcel Stör 583afc0f33 Remove hardware FAQ, fixes #2015 2017-06-27 17:17:28 +02:00
Arnim Läuger 26df4a32ad Change default flash mode to 'dio' in fw image header (#2013) 2017-06-25 20:41:36 +02:00
Terry Ellison 827642b49a Version 2.0 of the Lua Develoer FAQ (#1899) 2017-06-19 07:47:02 +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
Arnim Läuger 4e4dfc1d88 Align 8 MB & 16 MB flash sizes with SDK 2.1.0. (#1968)
* align 8MB and 16MB auto flash support with sdk 2.1.0
* remove SAFE_API
* fix flash size mismatch detection logic
2017-05-16 16:50:36 +02:00
dnc40085 447fcd397d Exposed wifi event OPMODE_CHANGED. (#1967) 2017-05-15 09:05:22 +02:00
Arnim Läuger c4516f1a17 Upgrade to SDK 2.1.0. (#1962) 2017-05-11 07:13:23 +02:00
Frank Exoo 3aef438aa0 Documenting creating integer build (#1961) 2017-05-08 13:39:27 +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
Marcel Stör cceb770d67 Add a few tiny corrections 2017-05-05 13:39:13 +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
Marcel Stör 2f8b35365a Prevent determineSelectedLanguageCode() from failing for offline site 2017-04-16 20:31:38 +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
Marcel Stör dba73cf214 Fix HTML anchors in ToC generator 2017-04-13 21:42:18 +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 07341e977f Transfer build options from README to docs (#1860)
* Transfer build options from README to docs, fixes #1830
* reference tls, u8g, ucg module configuration
2017-03-12 21:43:46 +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
thirschbuechler be2a9df1b0 Add modulo and power hints (#1832) 2017-03-06 13:14:07 +01:00
Marcel Stör d0622c30a0 Overhaul the tools section, fixes #1779 (#1831) 2017-03-05 17:10:17 +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
Marcel Stör b9d9f5856a Fix cloud builder link 2017-02-06 22:03:17 +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 20a591f59a Add section about NodeMCU PyFlasher (#1771) 2017-02-02 00:04:24 +01:00
Marcel Stör 0ca4b6ba55 Add more UDP documentation, contributes to #1701 2017-02-01 20:59:43 +01:00
Marcel Stör 419ec3384a Add two small fixes 2017-02-01 18:12:56 +01:00
Marcel Stör d2fbf40c49 Add UDP-related deprecation notes, partially fixes #1762 2017-01-26 23:44:21 +01:00
Marcel Stör f9c9eff720 Add a few notes about UDP handling, fixes #1701 2017-01-26 23:06:58 +01:00
Marcel Stör a2db0c65af Fix some cosmetic issues in gdbstud doc 2017-01-26 22:15:18 +01:00
Marcel Stör 88938b441d Document mbed TLS cipher suites better, fixes #1749 2017-01-21 23:45:33 +01:00
Arnim Läuger 305d7c4672 Add file.stat() to query file/directory attributes. (#1724)
* add file.stat()

* set default time/date to 1970-01-01
use lua_setfield
2017-01-17 21:54:23 +01:00
Felix Knecht 07031f569a Correct bme280 code samples for negative values (#1735)
* Corrected examples for negative values

See issue #1734
Negative values need to be treated differently. Changed all the samples to reflect that

* Update bme280.md
2017-01-17 21:52:45 +01:00
Marcel Stör 0d572eedca Polish rfswitch documentation 2017-01-15 21:23:56 +01:00
Alexis Lothoré f176697e13 Document user/pass as optional in MQTT client doc (#1727) 2017-01-15 19:27:56 +01:00
Marcel Stör c758908014 Add security note to WPS documenation 2017-01-09 22:55:01 +01:00
FrankX 378e5eb0ad Add WPS module (#1694)
* WPS functionality added

* WPS module switched off by default

* Update mkdocs.yml
2017-01-09 08:43:47 +01:00
devsaurus 5425adefff small fixes for sdcard and file doc 2017-01-06 16:15:29 +01:00
Verne Roberts cad1632e40 Add 31250 baud rate for MIDI support (#1690)
* add 31250 baud rate for MIDI support
* add bitrate to uart_bitrates array for the get operation
2017-01-04 12:31:47 +01:00
devsaurus 0a0c7c0637 ammendments to tmr API doc cleanup 2017-01-04 10:34:18 +01:00
Marcel Stör a89b008087 Replace old tmr API in docs with OO API (#1695) 2017-01-03 21:50:56 +01:00
Philip Gladstone 9b86937d45 Fix crash in sntp and add more reliable defaults servers (#1682)
* Fix bug in sntp where callback was run at interrupt level. Also add
the nodemcu pool servers as the default.

* Add comments on where the mysterious numbers came from

* Fix a crash with auto repeat mode and errors on repeat
2017-01-01 22:26:17 +01:00
Marcel Stör 9dfedaf55c Fix admonitions in WiFi docs 2017-01-01 17:32:29 +01:00
Marcel Stör 61f4e18301 Use an executable example for net.socket:on() 2017-01-01 14:15:37 +01:00
Marcel Stör f8f1069225 Fix mbed TLS naming 2016-12-31 21:00:20 +01:00
Yury Popov 3adba91b15 Net functionality rewrite on top of LWIP (#1379)
* Rewrite net.dns.resolve on LWIP

* Move IGMP (net multicast) to LWIP

* Cleanup net module

* Move secure connection operations to tls module

* Net module on LWIP

* Server timeout parameter

* TCP hold

* Fixes in documentation

* Documentation fixes

* Note TLS module depends on net

* Add TLS module to user_modules.h

* Callback on connect event

* Fix depends net module on tls module

* Fix unhold exponential time issue
2016-12-31 13:14:03 +01:00
Tobias Tangemann 57950413ca Fix and extend sample in apa102 module docu (#1689) 2016-12-30 07:03:13 +01:00
Marcel Stör 007f870cb6 Fix list indentation 2016-12-29 09:23:06 +01:00
Yury Popov 2b897e56c7 Cron module (#1674) 2016-12-26 14:19:12 +01:00
Arnim Läuger c57af8972f Rework support for >4MB modules: place SPIFFS after SDK data (#1646) 2016-12-26 14:17:57 +01:00
Philip Gladstone 543f438b6b Added node.random implementation (#1665) 2016-12-26 14:14:49 +01:00
Marcel Stör 7c9fdef77a Tiny formatting fix 2016-12-25 16:10:31 +01:00
Philip Gladstone feab8b2208 Various minor bits of cleanup (#1647)
* Check the return code of the read function when doing crypto.fhash so that we don't pass negative lengths to the hashing functions
*  Fix various assert failures in the LVM arising from rotables. No functional change
* Add the gpio interrupt time to the callback (and pass it from the interrupt handler)
* Get the PC right in the perf module
* Make the headers static in the websocket module
* Fix the documentation
2016-12-25 10:45:34 +11: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
Marcel Stör 1b8e9a33e5 Use constant for start_level 2016-12-14 08:07:23 +01:00
Marcel Stör d85f2638cd Fix grammatical mistakes 2016-12-14 07:34:00 +01:00
Arnim Läuger 84dc61f068 Minor formatting fix in bme280.md 2016-12-11 22:34:28 +01:00
vsky d56b4ef2e6 BME280: improved reliability and efficiency (#1662)
* BME280: improved reliability and efficiency

* BME280: new parameter to bme280.init() and new bme280.read() method documented
2016-12-11 22:31:39 +01:00
Yury Popov bdd54648f4 Upgrade to SDK 2.0.0 (#1435)
* Update LWIP from SDK
* mbedTLS integration
* Fix argument type in dbg_printf (#1624)
* Migrate to espressif’s download center (#1604)
* Fixed BBS links to firmware
* Adjust net module docs with mbedTLS info
* Remove unrelevant axTLS notice
2016-12-11 21:03:00 +01:00
Philip Gladstone 017b4637c2 Adds uart.getconfig(0) to get the current uart parameters (#1658) 2016-12-11 20:35:04 +01:00
Philip Gladstone 79013ae79a Improve SNTP module: Add list of servers and auto-sync [SNTP module only] (#1596) 2016-12-04 21:03:49 +01:00
ffedoroff 9f9fee9008 add new rfswitch module to handle 433MHZ devices (#1565) 2016-12-01 22:19:01 +01:00
Philip Gladstone 00b356be84 HTTP module can now chain requests (#1629)
* Fix up the HTTP module to use less memory
2016-12-01 22:13:33 +01:00
Jason Follas a48e88d4a3 EUS bug fixes (#1605)
- Bug fixes and improvements
- FIX: Ensure that station is enabled before doing network scan (this seems to be the cause of #1578)
- FIX: Check if state == NULL on enduser_setup.stop()
- IMPROVEMENT: Look for both enduser_setup.html.gz and enduser_setup.html as valid filenames, for semantic reasons
- IMPROVEMENT: Show a generic status message on HTML page if failure occurred before user even submitted data (i.e., would have come from previously stored config when the STA was started by EUS)
2016-12-01 22:12:47 +01:00
Marcel Stör 85c3a24927 Fix Somfy docs 2016-12-01 21:57:24 +01:00
Jun Kim 58321a9263 Fix typo at rtctime.md
rtctime.dsleep -> rtctime.dsleep_aligned
2016-11-29 22:41:15 +09:00
Marcel Stör 1032e9dd90 Extract and hoist net receive callbacks
This is done to avoid the accidental upval binding
2016-11-27 21:42:10 +01:00
Mariusz Kryński 59b9b3e26f support for custom websocket headers (#1573)
Looks good to me. Thank you.

Also:
 - allow for '\0's in received messages

* add client:config for setting websocket headers

Also:
 - headers are case-insensitive now

* fix docs

* fix typo

* remove unnecessary luaL_argcheck calls

* replace os_sprintf with simple string copy
2016-11-19 10:35:20 -05:00
Marcel Stör 6331e0868c Turn SPI busses note to admonition note 2016-11-17 21:25:33 +01:00
Mike Pye 9a30797ba2 Add note on dev board usage of SPI bus 0 (#1591) 2016-11-17 20:10:48 +01:00
Marcel Stör 1d0cf5e8d0 Virtual u8g display driver for RFB/VNC support (#1514)
* add u8g.fb_rle display
* move comm drivers to u8g_glue.c
* disable fb_rle per default
2016-11-14 13:40:45 +01:00
Marcel Stör a168449619 Overhaul flashing docs once again (#1587)
* Add chapter about determine flash size plus small fixes
* Rewrite esptool.py chapter, move flash size chapter to end
2016-11-12 20:20:46 +01:00
Marcel Stör 1e955caf26 Fix link 2016-11-10 21:31:49 +01:00
Jason Follas 058777ea60 Eus channelfix (#1583)
Squashed commits included:

Bug fixes and final implementation
- Added Content-Length: 0 to all headers
- Endpoint name checks not using trailing space so cache-busting techniques can be used (i.e., append a nonce to the URL)
- Track when connecting so APList scan doesn't take place during (which changes the channel)
- More debugging output added to assist in tracking down some issues

Added /status.json endpoint for phone apps/XHR to get JSON response

Station Status caching for wifi channel workaround + AJAX/CORS
- During checkstation poll, cache the last station status
- Shut down the station if status = 2,3,4 and channel is different than SoftAP
- Add Access-Control-Allow-Origin: * to endpoint responses used by a service
- Add a /setwifi GET endpoint for phone apps/XHR to use (same parameters as /update endpoint). Returns a JSON response containing chip id and status code.
- Add handler for OPTIONS verb (needed for CORS support)

Wi-Fi Channel Issue Workaround
- Do a site survey upon startup, set SoftAP channel to the strongest rssi's channel
- Compare successful station connect channel to SoftAP's. If different, then defer the Lua success callback to the end. Shut down Station and start the SoftAP back up with original channel.
- After the 10 second shutdown timer fires, check to see if success callback was already called. If not, then call it while starting the Station back up.

HTTP Response and DNS enhancements
- If DNS's UDP buffer fills up, keep going as non-fatal. It's UDP and not guaranteed anyways. I've seen this occur when connecting a PC to the SoftAP and every open program tries to phone home at the same time, overwhelming the EUS DNS server.
- Support for detecting/handling pre-gzipped `enduser_setup.html` (and `http_html_backup`) payload. Nice for keeping the size of the `state->http_payload_data` as small as possible (also makes minimization not as critical)
- Corrected misuse of HTTP 401 response status (changed one occurrence to 400/Bad Request, and changed another to 405/Method Not Allowed)

* Normalized formatting (tabs-to-spaces)
* Added documentation
* Corrected misuse of strlen for binary (gzip) data.
* Added NULL check after malloc
2016-11-08 21:58:33 +01:00
Arnim Läuger a0e2e0ca37 Implement object model for files (#1532) 2016-11-08 21:02:51 +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
Philip Gladstone 77b2e85d09 Add support to mix ws2812.buffer objects. (#1575)
* Add load/dump/mix/power operations on the buffer object
* Calculate the pixel value in mix and then clip to the range.
* Fixed the two wrong userdata types
* Added a couple more useful methods
* Add support for shifting a piece of the buffer.
* Fix a minor bug with offset shifts
2016-11-05 13:53:42 +01:00
Arnim Läuger f0780e399e Add ssd1306_128x32 for U8G (#1571) 2016-10-30 00:19:04 +03:00
Arnim Läuger 9db07783f4 Remove luaL_buffer from file_g_read() (#1541)
* remove luaL_buffer from file_g_read()
- avoid memory leak when function gets terminated by lua_error
- skip scanning for end_char when reading until EOF
* attempt to free memory in any case
2016-10-28 17:32:12 +03:00
Philip Gladstone f9533ed85a Reduced LUAL_BUFFERSIZE to 256. Should free up some stack (#1530) 2016-10-16 21:18:03 +09:00
vsky 880bd9850b Somfy/TELIS driver (#1521) 2016-10-14 07:49:58 +09:00
Philip Gladstone 025805b0e8 Fixes the gpio.serout problem from #1534 (#1535)
* Fix some issues in gpio.serout
* Minor cleanup
2016-10-11 21:51:00 +09:00
Marcel Stör d9b10a7bdb Fix typo 2016-10-11 08:05:42 +09:00
Jim Paris 948661d862 Rework flashing instructions
Clarifies issues around SDK init data and hopefully clears up some
confusion, when paired with the esp_init_data_default changes in
NodeMCU.
2016-10-05 13:09:25 -04:00
Marcel Stör d96d7f237f Document node.flashsize(), fixes #1510 (#1511) 2016-10-01 13:44:24 +02:00
Marcel Stör 3007b33a0b Fix typo 2016-09-26 21:53:28 +02:00
Marcel Stör 90839f8956 Fix typo 2016-09-21 20:27:53 +02:00
Philip Gladstone 5ba1a6e934 Fixes the spiffsimg issues (#1502) (#1503)
* Always build spiffsimg (and make it build)

* Make sure that we have the offset before allowing the user to put it
into the output filename

* Fix the documentation and align the makefile with the docs

* Clean up the docs a bit more

* Revert to include building the 8mb size (for ESP8285)

* Added a spiffsimg target that does what you would expect

* Added support for HOSTCC (defaults to gcc)
2016-09-21 11:45:53 +10:00
Philip Gladstone 04e93b2433 Add the esp-gdbstub to enable debugging (#1506)
* Initial version of gdbstub support

* Add DEBUG argument to Makefile to add more debug data and turn off -Os

* Add the output redirection handling

* Added documentation

* Cleaned up the english a bit

* Make gdboutput actually trap all the output

* Review comments
2016-09-21 11:38:12 +10:00
devsaurus 492ee578ae add u8g.fb_rle display 2016-09-20 23:37:13 +02:00
Marcel Stör 11436d8dad Fix typo 2016-09-18 21:31:54 +02:00
Johny Mattsson a112296850 Added crypto.new_hmac() feature. (#1499)
Docs for crypto module refactored for easier maintenance.
2016-09-16 17:46:39 +02:00
Marcel Stör 92a6e594e4 Fix SD card docs 2016-09-05 20:45:19 +02:00
Arnim Läuger ecf8bd98d6 Add FatFs and SD card support (#1397)
* Add FatFs
* enable BUILD_FATFS for all-module build
* push vfs into rest of firmware
* align maximum filename length
* increase timeout for acmd41 during card initialization
* switch from DOS to Unix path semantics chdrive() is substituted by chdir()
* update to fatfs R.012a incl. patches 1-6
* add callback for rtc provisioning in file
* update docs
2016-09-05 20:17:13 +02:00
dnc40085 3328c66f2c Add function `wifi.nullmodesleep()` (#1475)
Enable auto sleep in NULL_MODE by default.
2016-08-27 11:46:24 +02:00
Marcel Stör cd6862f738 Fix list format in rtctime docs 2016-08-25 22:06:54 +02:00
Antoine 369a107041 Fix apa102 docs (#1470)
apa102.write expects a string with channel parameters in the ABGR order.
2016-08-25 09:28:37 +02:00
Luís Fonseca 16051d51d6 Implement initial version for websocket module (#1433) 2016-08-18 13:59:44 +02:00
Luís Fonseca 67750c4a72 Make HTTP module follow redirects (#1450)
Fixes #1366
2016-08-14 00:48:13 +02:00
Marcel Stör f2fa23c512 Fix wrong words 2016-08-11 20:41:33 +02:00
Marcel Stör 567b0a5553 Allow to override User-Agent and Host HTTP headers (#1426)
* Allow to override User-Agent and Host HTTP headers

Fixes #1410

Idea borrowed from (unmerged) #1157

* Do not send port for host header for default ports
2016-08-11 13:22:31 +10:00
Marcel Stör f1b479d825 Update memory address for init data 2016-08-10 09:11:24 +02:00
TonyLianLong 480d922ca5 Update bme280.md (#1) (#1444)
The name should be bme280.c, not bit.c .
2016-08-08 13:37:01 +02:00
Marcel Stör 07aa210c50 Remove DEVKIT_VERSION_0_9 and deprecated functions (#1439) 2016-08-04 23:03:37 +02:00
Yury Popov f1afe7b6ab Add support for dynamic timers, deprecating the static ones (#1424) 2016-08-02 22:35:53 +02:00
Arnim Läuger 7f8a2b2c19 Update u8glib to v1.19.1 and add setContrast() (#1385) 2016-08-02 22:29:34 +02:00
Marcel Stör 8a7007efc9 Fix typo 2016-07-31 23:16:47 +02:00
snosrap 8cd5e02634 Fixed `STA_DISCONNECT` typo (#1430) 2016-07-31 23:09:16 +02:00
Marcel Stör f9875f6e38 Skip connect() in init.lua 2016-07-28 07:07:39 +02:00
Marcel Stör 3eccf506d1 Add note about calling sntp.sync periodically 2016-07-25 14:28:27 +02:00
Marcel Stör 2cfdc6a805 Re-write the 'upgrading firmware' section in the flash docs (#1414) 2016-07-23 16:04:36 +02:00
Arnim Läuger 84c005e85c Update to SDK 1.5.4.1 (#1390) 2016-07-22 23:18:47 +02:00