Commit Graph

1934 Commits

Author SHA1 Message Date
devsaurus b0d6446327 update ESP-IDF to release/v3.2 branch 2018-12-02 16:23:23 +01:00
Arnim Läuger ab32ad2a67
Port i2s, spi_master, and ledc to helper functions for option tables (#2577)
* opt_checkint_range: extend range check to default value

* opt_checklstring added

* i2s: rework luaM_ and option table handling

* spi_master: rework option tables handling

* ledc: rework option tables handling
2018-12-02 16:20:45 +01:00
Skirmantas Lauzikas 3257e557d4 ESP32: add support for RS485 (#2559)
* ESP32: add support for RS485

This commit adds support for switching UART mode to RS485/IRDA.
Also included are patches for memory leaks then handling UART events other than data.

* ESP32: Documentation for uart.setmode()
2018-11-30 12:07:05 +01:00
Skirmantas Lauzikas 794a07bb51 ESP32: Add time module (#2561)
* ESP32: Add time modules

New time module for manipulating system time/ calendar and controlling SNTP server

* ESP32: Time module documentation & style fixes
* added documentation for time modules
* style fixes as pointed out by @devsaurus

* ESP32: Time module small fixes
* Couple small fixes
2018-11-26 21:03:23 +01:00
Marcel Stör 5696b631fd Add Docker option 2018-11-26 09:51:10 +01:00
Arnim Läuger 9bd8df4693 Use custom parition table with 1.5MB for firmware (#2567) 2018-11-23 20:16:36 +01:00
Skirmantas Lauzikas 423c733db8 ESP32: Add SJSON module (#2562)
* Esp32: Add SJSON module

This adds SJSON module taken directly from master

* ESP32: Fixes for sjson lib
Fixed compilation not including config header, thus braking some of libs functionality

* ESP32: Upgraded SJSON to master
2018-11-22 20:58:27 +01:00
devsaurus c9e7dde5d4 fix utf8 nbsp 2018-11-15 22:22:37 +01:00
tomsci 72d28fa86e Adding qrcodegen module for generating QR Codes (#2543)
* Adding qrcodegen module for generating QR Codes

* Added LUA_MODULE_QRCODEGEN KConfig

* Changed qrcodegen.encodeText() to use an options table

Created common.h with new option table helper fns.

* Reworked http.c to use new common.h options table APIs
2018-11-15 22:17:43 +01:00
tomsci 1cb1aff4cd ESP32: Add Sodium module (#2550)
* Add Sodium module

* Split sodium API into subtables; updated docs

* Fixed refactored names of crypto_box fns
2018-11-15 18:04:00 +01:00
tomsci d2345f2beb esp32: Add node.uptime() function using esp_timer_get_time() (#2533)
* esp32: Reinstate tmr.now() function using esp_timer_get_time()

Also added larger limit before wrapping if Lua's number type supports
it.

* Renamed tmr.now() to node.uptime()

Added second return value to indicate timer wrap
2018-11-10 14:53:10 +01:00
Arnim Läuger de48203375
Default to "Release" code optimization level with -Os (#2552) 2018-11-10 14:52:25 +01:00
tomsci 5db5d8edeb Changed ESP32 http user agent to "NodeMCU (ESP32)" (#2551) 2018-11-08 21:14:15 +01:00
tomsci 73b13e4197 Add ESP32 http module (#2540)
* ESP32: Added http module

* add asynchronous flavor for context:request()

(cherry picked from commit e65b90cc8fc5296f7fe6cae1978835e06a9f44bb)

* http: More asynchronous support, more options

* Fix docs typo

* Code review comments from @devsaurus

Fixes some cleanup issues with asynchronous mode

* Added http.md to mkdocs.yml

* Align connection:close() to template
2018-11-08 20:24:18 +01:00
devsaurus 955a63881f i2s: fix memory leak for pending tx data when node_i2s_stop() deletes the tx task 2018-11-04 23:28:21 +01:00
devsaurus bf549a2440 make ldblib.c compilable with extended debug support 2018-11-04 23:26:09 +01:00
devsaurus dc0c6ff65d pack-port bits and pieces in spiffs.c:
- implement file.size for spiffs (#1516)
- fix vfs_lseek() result checking in enduser_setup and clarify SPIFFS_lseek() return value (#1570)
- Handle error condition in file.read() (#1599)
2018-11-04 08:49:17 +01:00
devsaurus fdb96f51be update file and vfs to master 2018-11-04 00:42:08 +01:00
devsaurus 30ada6f084 add i2s.mute() 2018-11-02 22:31:49 +01:00
tomsci 48b9518d76 Add object-based file API to dev-esp32 branch (#2524)
* #2521: Add object-based file API to dev-esp32 branch

Merged in from master@c708828bbe853764b9de58fb8113a70f5a24002d minus
some VFS changes and similar.

* Updated file docs from master

Omitting:
* file.mount()
* reference to rtctime.epoch2cal()
* file.stat()

As these are not available in dev-esp32 branch

Unsure about whether "directories are not supported" is still true
2018-10-29 07:09:41 +01:00
devsaurus 7ded3960eb fix net hold/unhold 2018-10-20 22:58:57 +02:00
devsaurus 3fb2c7d402 fix intr_alloc setting
re-enable i2s.read()
2018-10-18 22:47:39 +02:00
devsaurus 96adbabf5c doc fixes 2018-10-14 18:13:00 +02:00
devsaurus daa5848431 rework parts of I2S 2018-10-14 18:05:48 +02:00
devsaurus 5e64def682 add dac module 2018-10-14 12:29:30 +02:00
zelll d094944b9b fixed a leak 2018-10-13 14:12:11 +02:00
zelll fb1ac33f19 i2s docs 2018-10-13 14:12:02 +02:00
zelll a4c0d7180e fix spaces 2018-10-13 14:10:34 +02:00
zelll 34e486fb7f i2s extension 2018-10-13 14:10:03 +02:00
devsaurus 166474b9f1 clarify unsupported transport modes 2018-10-08 21:29:24 +02:00
Ryan Hartlage d6c593b722 Use esp-mqtt from esp-idf (#2509)
* Use esp-mqtt from esp-idf

* Fix formatting

* Revert changes to u8g2 submodule
2018-10-08 20:58:28 +02:00
tomsci 35c0f15805 Set stdout to unbuffered (#2508)
* Set stdout to unbuffered

This fixes issue #2507 esp32 serial console doesn't show output until
enter pressed.

* Moved setvbuf call to app_main immediately after console_init
2018-10-07 21:40:49 +02:00
devsaurus 45c63a8236 Add ucg module. 2018-10-07 16:31:28 +02:00
devsaurus c1de414ba1 fix danglink link in tmr.md 2018-10-07 16:17:38 +02:00
devsaurus 0802418978 fix stale link in file.md 2018-10-07 16:15:12 +02:00
devsaurus 209fe91ba7 add encoder doc 2018-10-07 16:08:45 +02:00
devsaurus 9ab7e7fa34 fix wrong link to index.md 2018-10-07 16:04:12 +02:00
devsaurus e86fa642b5 unbreak mkdocs build 2018-10-07 15:59:04 +02:00
devsaurus 4b1551af49 update u8g2 to v2.23.18 2018-10-07 15:04:03 +02:00
devsaurus 80e6cc1e7e install python requirements 2018-10-07 14:06:56 +02:00
devsaurus 358379fd90 Updated ESP-IDF to latest. 2018-10-07 12:33:40 +02:00
Arnim Läuger bf5808495c
Merge pull request #2501 from ryanplusplus/mqtt-rometatable
Mqtt rometatable
2018-10-02 19:00:04 +02:00
Ryan Hartlage c8e3a11a00 Use alphabetical order for lua modules in kconfig 2018-07-14 15:07:39 -04:00
Ryan Hartlage 74fd5184dd Use RO metatable for MQTT module; add link to docs in mkdocs.yml 2018-07-14 13:40:21 -04:00
devsaurus 45be28cf60 fix and document template partition table 2018-04-15 22:55:28 +02:00
devsaurus 8d0a8a5763 refactor task wdt handling to platform layer 2018-04-04 09:25:47 +02:00
devsaurus a63da92e82 set auto_connect before station configuration
idf 3.1 connects automatically upon esp_wifi_sta_config()
2018-04-04 09:09:41 +02:00
devsaurus 8d843e5beb fix task wdt to handle PANIC situations and spiffs formatting 2018-04-02 21:17:18 +02:00
devsaurus cc34ac0844 update toolchain 2018-04-01 00:28:38 +02:00
devsaurus efffa92b77 Updated ESP-IDF to latest. 2018-04-01 00:28:26 +02:00