Commit Graph

1307 Commits

Author SHA1 Message Date
Terry Ellison dc905f080b Merge pull request #1063 from DiUS/fscfg
Add file.fscfg() command for fs location + size.
2016-02-18 08:51:03 +00:00
Johny Mattsson 1fd98d9f86 Add file.fscfg() command for fs location + size. 2016-02-18 12:52:40 +11:00
Johny Mattsson 1afa72d53a Merge pull request #1061 from TerryE/dev-task-if
Add New Tasking I/F and rework GPIO, UART, etc to support it
2016-02-18 11:51:27 +11:00
Terry Ellison 16953690bb Merge pull request #902 from Alkorin/ws2812-buffer-1.5
ws2812 strip data buffer
2016-02-17 22:05:47 +00:00
Terry Ellison 4501f655f6 Merge pull request #1050 from jfollas/file-exists
Added file.exists() method
2016-02-17 22:04:09 +00:00
TerryE 49733f6f6d Add New Tasking I/F and rework GPIO, UART, etc to support it
As with the last commit this rolls up the follwowing, but include the various
review comments on the PR.

-   **Documentation changes**. I've added the taks FAQ as a stub new Extension
developer FAQ, and split the old FAQ into a Lua Developer FAQ and a Hardware
FAQ.

-   **Tasking I/F**.  New `app/task/Makefile`, `app/task/task.c`,
`app/include/task/task.h` and `app/Makefile` as per previous commit.  Cascade
changes to `app/driver/uart.c`, `app/include/driver/uart.h`,
`app/user/user_main.c` and `app/modules/node.c`

-   **GPIO Rework** to `app/modules/gpio.c` and `pin_map.[hc]`, `platform.[hc]`
in `app/platform`

-   **Other Optimisations** Move the `platform_*_exists()` from
`app/platform/common.c` to static inline declarations in `platform.h` as
this generates faster, smaller code. Move lgc.a routines out of iram0.
2016-02-17 17:13:17 +00:00
Terry Ellison 19471f54ad Merge pull request #1056 from devsaurus/uart_baud
Enable UART baudrate 256000 in platform layer.
2016-02-15 22:01:06 +00:00
Marcel Stör e8c89fac19 Merge pull request #1048 from devsaurus/modules_cleanup
Remove Lua modules with equivalent ones in app/modules.
2016-02-15 22:46:23 +01:00
devsaurus c88f0bd3f8 Enable UART baudrate 256000 in platform layer. 2016-02-15 21:40:20 +01:00
devsaurus ee96273191 Remove lua modules with equivalent ones in app/modules. 2016-02-14 23:03:33 +01:00
Marcel Stör 639a11e9c4 Merge pull request #1043 from hvegh/dev
Add i2c based module for am2320 humidity sensor
2016-02-14 15:27:00 +01:00
Henk Vergonet a1c1e015ff Add i2c based module for am2320 humidity sensor
Example use:
> sda=1
> scl=2
> am2320.init(sda,scl)
> rh, t = am2320.read()
> print(string.format("Temperature: %s degrees C", t / 10))
> print(string.format("RH: %s %%", rh / 10))

signed-off-by: henk.vergonet@gmail.com
2016-02-14 15:12:42 +01:00
jfollas d4ae67d0b4 Changed filename length error handling per TerryE's suggestion 2016-02-13 18:58:04 -05:00
jfollas 44786a22ff Added file.exists() method to save the need to use file.list() for checking file existence 2016-02-13 17:37:04 -05:00
Marcel Stör 2c687313de Merge pull request #1002 from pjsg/mqtt
Fix memory exhaustion in mqtt under circumstances from issue #975
2016-02-10 12:58:26 +01:00
Marcel Stör c40cd0953e Merge pull request #1021 from Takkuz/dev
Added full support for DS3231
2016-02-10 12:57:44 +01:00
Vittorio Giovanelli ecd79d7914 Fixed some grammar on docs 2016-02-10 09:32:37 +01:00
Marcel Stör 2e37a52aaa Merge pull request #1030 from devsaurus/spi_pinconfig
Enable spi functionality on pins after internal config has been applied.
2016-02-10 07:06:13 +01:00
Marcel Stör 2c5303d51f Merge pull request #1029 from devsaurus/spi_buffer
Extend data type for spi miso/mosi buffer offset to 16 bit.
2016-02-10 07:05:59 +01:00
devsaurus 5d8848ecaf Enable spi functionality on pins after internal config has been applied. 2016-02-09 23:26:40 +01:00
devsaurus dc2e1efefb Extend data type for spi miso/mosi buffer offset to 16 bit. 2016-02-09 22:05:05 +01:00
Arnim Läuger 6623b9e3fd spi.CPOL_HIGH supported
with bf74b617d0
2016-02-09 20:30:58 +01:00
Marcel Stör b3335819b8 Move Markdown syntax hint to a more sensible place 2016-02-08 21:52:21 +01:00
Vittorio Giovanelli ca104a96ce Added full support for DS3231 2016-02-07 21:19:33 +01:00
Arnim Läuger 25585672ae Merge pull request #1014 from urish/patch-1
Fix secure TCP connections for `net` and `mqtt` modules.
2016-02-07 19:51:32 +01:00
Uri Shaked 31a62a9eb1 Fix secure MQTT connections
Call `espconn_secure_set_size()` before calling `espconn_secure_connect()`, similar to how the http module works
2016-02-07 18:11:30 +02:00
Terry Ellison 81c1d55aaa Merge pull request #1016 from marcelstoer/dev-contribution-update
Add section about writing documentation
2016-02-06 22:47:57 +00:00
Marcel Stör 6f7f5bfc91 Add section about writing documentation
Fixes #1013
2016-02-06 23:15:29 +01:00
Marcel Stör e9cde6eb34 Correct secure option in MQTT documentation
Fixes #996
2016-02-06 22:28:07 +01:00
Arnim Läuger d760a5e29c Merge pull request #940 from devsaurus/dev-ssd1327
implement architecture dependent delay functions for u8glib
2016-02-06 21:46:01 +01:00
Uri Shaked ce498462f7 Fix secure TCP connections
Call `espconn_secure_set_size()` before calling `esp_secure_connect()`, should fix issues like #710 and #520
2016-02-06 17:12:46 +02:00
philip c9cf02ba31 Send any queued packets when possible 2016-02-01 22:29:32 -05:00
Johny Mattsson fcb14a33b3 Merge pull request #987 from DiUS/enduser_enhanced
Enhancements to enduser_setup module
2016-02-02 00:39:47 +11:00
Johny Mattsson 86839d6e71 Fixes and enchancements for enduser_setup module.
Fixes:

* Removed spurious \0 bytes being sent to the client in many cases.

* Properly terminated 404 header.

* Now including Content-length: header for index.html (including built-in).

  Clients otherwise had to wait for their own timeout before considering
  the page load complete, which resulting in an unpleasant sluggish
  experience.

* Switched form submission to GET, as iOS sometimes does not include the
  body in the same packet as the POST header, which led to the module
  not finding the form values.

* Added redirect after form submission to avoid blank-page-in-browser.

* Moved common "enduser_setup" prefix to a lua_pushfstring() to reduce
  string literal overhead.

* Replaced cached lua_State* with calls to lua_getstate(), as in other
  modules.

* Fixed broken appending of MAC to the SSID.

* Fixed up macro definitions to not break `if` clauses unintentionally.

Enhancements:

* Support for scanning for available WiFi networks, and picking from the list.

* Support for retrieving the current WiFi station status.

* Added "manual" mode, where the module does not (re)configure the AP setup,
  nor shut down automatically. Default is still automatic, as before.

* Updated docs for new `enduser_setup.manual()` function.
2016-02-01 14:42:24 +11:00
Arnim Läuger d083122688 remove space in heading for gpio.write() 2016-01-31 21:58:49 +01:00
Marcel Stör 9e861313e9 Add chapter about firmware files and flash address
Had to slightly tweak the Markdown headers due to
https://github.com/mkdocs/mkdocs/issues/770 :(.

Fixes #990.
2016-01-31 14:33:49 +01:00
Marcel Stör ccd556be68 Add note about UART speed 2016-01-31 14:31:15 +01:00
Marcel Stör 47801ca7a0 Merge pull request #994 from devsaurus/upgrade-fw
Add notes about upgrading from old fw
2016-01-31 12:16:56 +01:00
Arnim Läuger 53f1761cfb add notes about upgrading from old fw 2016-01-31 11:54:58 +01:00
Arnim Läuger f42fdb1a76 also fix cb prototype description 2016-01-30 10:23:27 +01:00
Arnim Läuger 1697126a15 terminate example 2016-01-29 22:40:15 +01:00
devsaurus 8db93bcabf make delay optional 2016-01-29 18:52:38 +01:00
devsaurus 3a597f1698 implement architecture dependent delay functions for esp8266 port 2016-01-29 18:52:38 +01:00
Johny Mattsson 4bf2bf03d7 Merge pull request #985 from devsaurus/mqtt_error_checking
Improve error checking in mqtt module
2016-01-29 12:07:01 +11:00
devsaurus 9741c8f1b5 fix #527 2016-01-28 23:46:35 +01:00
devsaurus 1c32d20502 improve error checking in mqtt module
connect(), close(), subscribe(), publish()
2016-01-28 21:36:38 +01:00
Johny Mattsson d5f71eb0c6 Simplified linker script handling of libc.
Having ascertained that the SDK itself has no (zero, zilch, nada) dependencies
on the standard C library, the NodeMCU linker script now puts any and all
libc functions into irom, rather than carefully picking the ones that
were used by NodeMCU some months ago. This should help keep iram free for
the things which really need to be in iram (such as ISRs).
2016-01-28 17:56:01 +11:00
Johny Mattsson 9fd215b028 Corrected sprintf() prototype & behaviour. 2016-01-28 17:56:01 +11:00
Johny Mattsson 74d27b3486 Merge pull request #968 from devsaurus/crypto_http_mqtt_lua-gnu11
Enable -std=gnu11 for crypto, http, mqtt, and lua dir
2016-01-28 17:36:27 +11:00
Johny Mattsson 5ec2b695be Merge pull request #981 from jfollas/dev
Fixed issue where default ESP_xxxxxx SSID was appearing
2016-01-28 11:14:24 +11:00