Commit Graph

1636 Commits

Author SHA1 Message Date
Johny Mattsson 30d354c290 Rework ADC mode setting approach (#1285)
- Stop fighting against the SDK in terms of owning/writing the init_data block.
  NodeMCU included a default init_data block because originally the SDK did
  not, but by now it's not needed.

- Expose a way to reconfigure the ADC mode from Lua land. With most people
  using the cloud builder and not able to change the #define for byte 107
  this has been a pain point.

- Less confusion about which init_data has been used. Lua code can now simply
  state what mode it wants the ADC to be in, and not worry about the rest of
  the init_data complexities such as the init_data changing location due to
  flashing with wrong flash_size setting, or doing/not doing a chip-erase
  before loading new NodeMCU firmware.
2016-05-18 21:45:15 +02:00
Marcel Stör 9c9237ef5a Small syntax fix in UART documentation 2016-05-16 22:25:07 +02:00
devsaurus c0f1e028a6 fix link to net module 2016-05-15 17:08:45 +02:00
dnc40085 1b4234e2d3 Add details to WiFi module documentation (#1294)
Update descriptions of `wifi.setmode`, `wifi.sta.config` and `wifi.ap.config` to inform user of configuration persistence.
2016-05-14 23:04:20 +02:00
Marcel Stör e5cd17f08b State more explicitly that concurrent requests are not supported 2016-05-14 13:55:25 +02:00
dnc40085 1744372060 Updated tmr module and documentation
* Change upper limit for timer in `tmr_register` and `tmr_interval` to reflect new limit in SDK 1.5.3.
* Change documentation for `tmr.alarm()`, `tmr.interval()` and `tmr.register()` to match source.
* Improve error reporting to be more descriptive.
2016-05-14 00:17:04 +02:00
Marcel Stör 65c7e8e061 Use http://httpbin.org in examples 2016-05-13 23:31:29 +02:00
Philip Gladstone f0c1034308 Send a multicast response for QM query and other mDNS fixes
* Send a multicast response if it is a QM query
* Use the NSEC record in the style which mDNS demands
* Shuffle the code a bit and allow sending of A response...
* Made the A record work
* Now gets TTLs right and (I think) handles multiple questions
2016-05-12 14:37:46 +02:00
Johny Mattsson 8705b9e5a2 Merge pull request #1284 from pjsg/mqtt-fail
Fix bugs with mqtt connection error handling
2016-05-10 13:08:34 +10:00
philip 501ef9d566 Fix bugs with mqtt connection error handling 2016-05-09 22:04:23 -04:00
Thomas Soëte 0577c8af0f Finalize work on ws2812 module
* Fix bug on first write
	Pin is 'HIGH' at reset, so we need to pull it down and generate a
	reset.

* Move init code to flash section, not needed to be in iram.

* Remove pin choice in API

* Remove lock in ws2812_buffer_write

* Remove naked malloc

* Drop ws2812_writergb

* Drop support of ws2812.buffers to ws2812_writegrb should use ws2812.buffers:write

* Add support for <>3 colors per leds strips (RGBW)

* Remove ICACHE_FLASH_ATTR

* Add static const on _uartData to avoid initialization penalty
2016-05-09 07:21:50 +02:00
Marcel Stör 216c69f18b Update ISSUE_TEMPLATE.md 2016-05-02 21:39:05 +02:00
dnc40085 526f5457a2 Fixed some errors in wifi documentation (#1279)
Changed Parameters in `wifi.sta.status()` to match constants in source.

Fixed typo in example for `wifi.eventmon.register()`.
2016-05-02 13:57:18 +02:00
Thomas Mohaupt d906538edb Typo in link to GraphicsTest.lua (#1278)
Thank you.
2016-05-01 09:42:20 -04:00
Johny Mattsson 9a7a2c4dc3 Merge pull request #1184 from devsaurus/user-gnu11
Enable -std=gnu11 for user dir
2016-04-30 13:26:09 +10:00
devsaurus 8e11e895f5 move SPIRead to rom.h 2016-04-29 19:57:31 +02:00
Marcel Stör 8dbbe40fb8 Improve docs wrt to auto-connect vs connect, addresses #1273 2016-04-29 19:21:25 +02:00
Marcel Stör 583ea8514f Remove last obsolete line 2016-04-28 23:28:20 +02:00
Marcel Stör d572b90104 Fix the RTD badge 2016-04-28 23:24:07 +02:00
Marcel Stör e8ee825c25 Switch from readthedocs.org to readthedocs.io 2016-04-28 08:09:35 +02:00
Johny Mattsson 1587c81973 Merge pull request #1257 from marcelstoer/dev-GitHub-templates
Add issue and PR templates
2016-04-26 16:42:39 +10:00
Johny Mattsson 3ec58852c9 Merge pull request #1265 from pjsg/fix-rotary-doc
Fixed the rotary documentation to match the implementation
2016-04-26 16:41:31 +10:00
philip 45722f3d79 Fixed the documentation to match the implementation 2016-04-25 21:34:21 -04:00
Marcel Stör 09ba1fc897 Fix tiny issue in sigma-delta docs 2016-04-25 14:54:36 +02:00
Philip Gladstone 0472587c4c Added length checking (#1260)
Made the code clearer
2016-04-24 16:45:47 +02:00
Marcel Stör cb03595931 Add issue and PR templates 2016-04-19 22:43:59 +02:00
Arnim Läuger 25b4285c4d update examples to task posting (#1249) 2016-04-18 13:35:07 +02:00
Marcel Stör 4710f73c09 Add a few more remarks to the support page 2016-04-17 23:53:41 +02:00
Philip Gladstone 5b4b1e0388 Autobaudrate detection by default -- to reduce problems with speed change (#1215)
* Auto autobaud detection by default

* Added stopping the autobaud if explicitly configured

* Add note about auto-baud to the uart.md
2016-04-17 23:44:18 +02:00
Johny Mattsson f428897810 SNTP module enhancements (#1243)
* Provide an error code to SNTP error callback.

* Switch SNTP to use ephemeral port.

In case we're being hit by ISP-level thou-shall-not-run-NTP silliness.
2016-04-15 12:49:18 +02:00
Arnim Läuger a33f586855 fix formatting in sigma-delta.md 2016-04-12 00:20:49 +02:00
Falk Kühnel 3f418f995c changed documentation for ws2812 module, which only works for pin GPIO2 at the moment (#1235) 2016-04-11 22:12:02 +02:00
Philip Gladstone 61c2b4dfe3 Minimal changes to handle bad bodies (#1212)
Fix failure to compile

Move the check into the http module

Reverted change
2016-04-09 13:54:10 +02:00
Philip Gladstone b32a161bc1 Reverted accidental change (#1222) 2016-04-09 13:53:31 +02:00
Marcel Stör 7d576efed9 Fix link syntax 2016-04-03 21:56:51 +02:00
Philip Gladstone 3a5e5f10e2 Take 2: Add regular sends to mdns. Check for (some) buffer overflows. Make it handle unicast
Merging as suggested by @TerryE (and squashing at the same time. Turns out that this feature is enabled for this repo).

* Squashed commit of the following:

commit f985f10d9d2ee035f5a6ee6245c60d9904d98cc1
Author: philip <philip@gladstonefamily.net>
Date:   Sun Mar 27 21:52:46 2016 -0400

    Better mdns code

commit 6ee49ee106
Author: philip <philip@gladstonefamily.net>
Date:   Fri Mar 25 23:25:11 2016 -0400

    Update the docs

commit 7e455541c6
Author: philip <philip@gladstonefamily.net>
Date:   Thu Mar 24 21:58:16 2016 -0400

    Add retries and buffer checking to mdns

    Get the length right

    Now it seems to work

* Might work for combined mode

* Fix crash

* Simplified various bits of code. Changed the LUA interface

Added checking (to some degree) incoming quyery types

Move the defaults to the right place

Added reference to the RFC`
2016-04-03 14:10:52 -04:00
Marcel Stör eccb2e4a53 Update module count 2016-04-02 23:48:00 +02:00
Philip Gladstone 3aeb140fed Merge pull request #1218 from ricklettow/mqtt-doc-update
Update mqtt documentation indicating the limitations of callbacks
2016-04-02 14:07:56 -04:00
Jason Follas e16204d4f4 Corrected SPI CPOL/CPHA relationships
* Corrected CPOL/CPHA relationships

* Simplified to remove duplicated code

* Removed comments about when MISO is sampled. ESP seems to sample MISO on same clock edge as when MOSI is set.
2016-04-02 19:26:07 +02:00
Rick Lettow ca87271692 Update mqtt documentation indicating the limitations of the subscribe(),
unsubscribe() and publish() callback functions.
2016-04-02 12:01:38 -05:00
Arnim Läuger a1ffe2e9fd Net docs, 2nd round
* add doc for net methods
- net.socket:getpeer()
- net.server:on()
- net.server:send()

* document net.multicast[Join|Leave]()
2016-04-01 21:44:46 +02:00
Johny Mattsson f3cc39c2a2 Merge pull request #1214 from robertfoss/eus_js_fix
EUS JS select fix, part 2
2016-04-01 15:26:38 +11:00
Johny Mattsson 0556bf84bf Merge pull request #1018 from dnc40085/dev_new_event_monitor
Expose SDK event monitor
2016-04-01 13:15:27 +11:00
dnc40085 5e9ab01523 Modified wifi module
Implement SDK event monitor
Move wifi status event monitor code into seperate file
(app/modules/wifi_eventmon.c)
Modify wifi lua callback registration code.
Add Functions wifi.ap.deauth and wifi.sta.getrssi
Rework wifi event monitor to use tasking interface
fix for Lua coroutine compatibility issue
Made changes Suggested by TerryE

Also, moved code that sets the default host name out of
luaopen_wifi_init and into a separate function and added a post_task_low
entry in it's place.

Replaced some if test then return error lines with
luaL_argcheck
Add check for malloc null return in wifi.eventmon 
to catch out of memory errors
2016-03-31 19:01:41 -07:00
Robert Foss 2e597e72e9 Improve previous EUS JS select fix to work better on mobile UIs. 2016-03-31 21:26:22 -04:00
Marcel Stör b735fe7cff Merge pull request #1208 from devsaurus/net_hold
Document net.socket:hold() and unhold()
2016-03-31 13:42:46 +02:00
Marcel Stör e5b30a425f Merge pull request #1211 from DiUS/eus-ssid-passwd-decode-fix
Fixed EUS password/ssid decoding.
2016-03-31 13:39:28 +02:00
Johny Mattsson 51efa2ab65 Fixed EUS password/ssid decoding. 2016-03-31 17:47:40 +11:00
Marcel Stör d6ace19e97 Add origin to HTTP module docs 2016-03-31 07:31:02 +02:00
Johny Mattsson 7e43c2c352 Merge pull request #1206 from robertfoss/eus_js_fix
enduser_setup: JS select fix
2016-03-31 13:05:48 +11:00