Arnim Läuger
e3807bd439
enforce single source for SSL buffer size ( #2248 )
2018-02-07 21:27:01 +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
devsaurus
a0ea61f595
remove inline declarations
2018-01-20 19:42:55 +01:00
devsaurus
d0c55876c8
initialize task ids only once at module open
2018-01-14 21:21:32 +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
Nathaniel Wesley Filardo
6576af959b
Update mbedTLS ( #2214 )
...
* mbedTLS update
* mbedtls: vsnprintf macroification
* Further update mbedTLS to 2.6.1
* mbedtls: make debugging work again
* Silence SSL messages on normal teardown
* Drop DTLS support from mbedtls
2018-01-10 21:48:36 +01:00
Arnim Läuger
fc2f325029
add missing NULLification of serout.delay_table after luaM_freearray() ( #2220 )
2018-01-10 21:25:35 +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
Johny Mattsson
452778eda8
Fix batch multi-line UART input discarding all but first line ( #2217 )
...
* Only load a single non-empty line from the uart at a time.
* Don't fall behind in processing of uart buffer.
2018-01-04 22:50:39 +01:00
Pawel Jasinski
05b0a0134c
host field in HTTP header is no longer limited to 31 charcters ( #2210 )
2017-12-25 21:47:45 +01:00
Carlos Bastos Filho
442e3e2e6c
Update file.c
...
Buffer size of funtion readline is wrong (Line 480)
Should be FILE_READ_CHUNK = 1024 bytes instead 256 bytes
2017-12-19 15:32:23 -02: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
Philip Gladstone
11c47fa17a
New version of spiffs ( #2172 )
2017-12-03 13:14:22 +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
Mark Deneen
4af68d8360
WiFi method to adjust maximum TX power ( #2171 )
2017-11-19 20:00:20 +01:00
Philip Gladstone
5ece2fda20
Another dsleep fix (or rather a not-deep-sleep case) ( #2155 )
...
* Make the rtc variables not be cleared by the .bss initialization
* Move the save to the right place
* Make sure that we reset the rtctime to 0 if we didn't sleep properly.
* Setting the seconds to zero doesn't update the dsleep calibration
2017-11-03 17:50:10 +01:00
Philip Gladstone
0f7716297c
Make the CRON module work reliably ( #2153 )
2017-10-30 11:05:41 +01:00
Terry Ellison
ffc914dad0
Merge pull request #2152 from pjsg/fix-no-int
...
Make it build without INTERRUPT_ENABLE
2017-10-29 18:19:40 +00:00
philip
f17b5ebf59
Make it build without INTERRUPT_ENABLE
2017-10-29 10:35:24 -04:00
Johny Mattsson
4a91464467
Fixed broken wifi.sta.{dis,}connect() with event mon enabled. ( #2098 )
2017-10-28 23:23:15 +02:00
Philip Gladstone
1a6e83d088
Fixes problems with time not preserved through dsleep ( #2148 )
...
* Make the rtc variables not be cleared by the .bss initialization
* Move the save to the right place
2017-10-28 22:16:09 +02:00
Nathaniel Wesley Filardo
5c8619eb4d
ws2812 mix: add all, then divide ( #2032 )
...
This achieves rounding between multiple summed frame buffers
2017-10-22 19:20:45 +02:00
Suraj151
aebfd1a907
Swap reading y and z values ( #2137 )
2017-10-16 14:51:24 +02:00
Johny Mattsson
3e60fa8f60
Fix data loss in TCP streams. ( #2097 )
...
* Fix data loss in TCP streams.
* Factored out the UDP extra args handling.
2017-09-28 22:41:22 +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
Philip Gladstone
e4d010e1c0
Handle doublequotes in strings. ( #2104 )
2017-09-15 22:25:13 +02:00
Nathaniel Wesley Filardo
f9e0aab200
cron: don't include rtctime_internal.h ( #2084 )
...
That file is supposed to only be included once because it does things
like declare static globals. As it stands, cron doesn't believe time is
ticking.
Fixes #2080
2017-08-24 21:17:31 +02:00
Nathaniel Wesley Filardo
fe032edd9c
Add %p to libc's debug printf ( #2062 )
2017-08-16 21:38:10 +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
dnc40085
c9e8621821
fix for travisCI
2017-08-05 14:46:14 -07:00
dnc40085
295e640a7a
Comment out pmsleep and timer_suspend options in user_config.h
...
for master drop
2017-08-05 14:05:26 -07:00
Johny Mattsson
e09e830d4b
Fixed alignment assumptions in SHA2 update. ( #2034 )
...
Unaligned loads are a no-no on many architectures, the ESP8266 included.
2017-07-31 14:12:34 +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
Johny Mattsson
864bcdbd89
Merge pull request #2038 from pjsg/spiffs-blocksize
...
Fix the SPIFFS blocksize issues
2017-07-12 11:15:25 +10: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
philip
761c9dff7f
Try to fix the blocksize issues
2017-07-06 23:18:06 -04:00
Johny Mattsson
c01f653736
Unbreak build when SPIFFS_CACHE==0. ( #2028 )
2017-07-05 18:00:26 +02:00
Johny Mattsson
0c315ed0ef
Merge pull request #2024 from DiUS/sjson_undefined_symbol_fix
...
Sjson undefined symbol fix
2017-07-04 14:21:41 +10:00
Johny Mattsson
ea4d33715f
Cleaned up sjson module build.
...
- Move jsonsl build to regular library build rather than #include the .c file
- Provide wrappers for malloc/calloc/free to fix undefined symbol warnings.
2017-07-03 13:35:45 +10: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
e2fc37fa17
Removed code allowing argument style station configuration ( #2018 )
2017-06-29 22:05:40 +02:00
Arnim Läuger
435a4cf5a1
backport fix for https://github.com/espressif/esp-idf/issues/631 ( #2006 )
...
* backport fix for https://github.com/espressif/esp-idf/issues/631
* remove code from intermediate fix
2017-06-20 21:59:12 +02:00
Philip Gladstone
438f1609f6
Only handle errors if we have not parsed a complete object ( #1999 )
...
* Only handle errors if we have not parsed a complete object
* Fix typo which means that \n was not an ending character
2017-06-18 08:20:26 +02:00
Arnim Läuger
216b820d08
Ensure standard DHCP message length when sending response to clients ( #1985 )
2017-05-25 13:59:45 +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
Philip Gladstone
e7f063950b
Update to current version of SPIFFS ( #1949 )
2017-05-21 16:16:39 +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
fetchbot
faefc09595
add ads1115 module ( #1942 )
...
* add ads1115 module
* replace os_delay with os_timer
* typo
2017-05-07 09:49:57 +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
3e24b1c75b
Added deprecation message to wifi.sta.config() for argument style cfg ( #1939 )
...
Documentation for the old(argument) style of station configuration was
removed in a previous PR, so I added a deprecation message to inform
developer of the upcoming removal of the feature.
2017-04-26 13:00:34 +02:00
dnc40085
9dbae1c963
Expose UART 1 ( #1934 )
...
* Expose UART 1 and update uart module documentation
2017-04-24 22:06:54 +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
Nathaniel Wesley Filardo
332bcb39a3
mqtt: fix several buffer length checks ( #1906 )
...
Partially addresses nodemcu/nodemcu-firmware#1773 .
2017-04-19 20:16:44 +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
Marcel Stör
b645100d28
Add autoconnect deprecation warning to MQTT code
2017-04-04 22:52:51 +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
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
Arnim Läuger
fc887e9f9f
Fix memory leak in file_stat(). ( #1871 )
...
* Change vfs_stat() api to pre-allocated buffer for stat info.
* Change vfs_readdir() api to stat buffer as well. vfs_item api removed.
2017-03-29 13:58:40 +02:00
Yury Popov
92cfbb45c3
Cron fixes ( #1884 )
...
* Fix cron values >32
* Fix crontab description items order
2017-03-27 08:20:08 +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
Frank Exoo
d9b3db06f6
Show IP address after enduser_setup ( #1867 )
2017-03-18 09:45:26 +01:00
Yury Popov
2f00c1d8d9
TIME_WAIT sockets fixes ( #1838 )
...
* Enable SO_REUSEADDR for server TCP sockets
* Reduce TCP_MSL to 5 sec
* Add changes notice for future updates
* Move MSL change to lwipiots.h
2017-03-17 07:31:37 +01:00
Johny Mattsson
45ae795739
Extend node.dsleep() to support instant sleep. ( #1859 )
2017-03-14 10:49:41 +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
Arnim Läuger
f5652187a6
use flash size byte to determine the location of the init data for byte 107 ( #1827 )
2017-03-02 14:48:44 +11:00
Marcel Stör
a26969b388
Add generic function to print deprecation notes ( #1538 )
2017-03-01 12:42:20 +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
2168e5185e
Apply power selection at the end of the write slot while IRQs are masked ( #1808 )
2017-03-01 12:41:17 +01:00
Arnim Läuger
8931f09ce4
Fix missing return code for ws2812_init() ( #1816 )
2017-02-24 21:20:09 +01:00
dnc40085
b382a42057
Fix debug message for wifi.sta.getrssi() ( #1814 )
2017-02-22 20:59:04 +01:00
FrankX
4dfa5cd7d6
Correct BME280 IIR filter setting ( #1787 )
2017-02-11 22:53:06 +01:00
Philip Gladstone
00bc9403fe
Fix the adjusting of the time when there is a rollover ( #1788 )
2017-02-09 21:53:12 +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
Arnim Läuger
87e1abfb0f
rtctime: change to lua_setfieldfor populating the table ( #1746 )
...
Looks good.
2017-01-22 14:17:46 -05:00
ffedoroff
a271ce4d34
Invert signal on rfswitch pin ( #1738 )
...
Since that code was migrated from Arduino, I should invert pin
2017-01-19 12:46:45 +01:00
FrankX
a18826ec54
Accept 64 byte length WiFi passwords ( #1730 )
2017-01-17 21:55:30 +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
Marcel Stör
0a503587ee
Fix typo ( #1714 )
2017-01-10 21:09:54 +01:00
ffedoroff
52aa1f7e3d
Fix typo ( #1715 )
2017-01-10 21:05:48 +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
Yury Popov
a592af7ab1
Depend http client secure part on CLIENT_SSL_ENABLE ( #1702 )
2017-01-04 18:31:32 +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
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
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
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