Commit Graph

935 Commits

Author SHA1 Message Date
Vowstar d836ebf569 Merge pull request #544 from DiUS/wifi-ap-getconfig
Declare wifi.ap.getconfig() in the right map.
2015-07-11 12:16:13 +08:00
Vowstar 6ec4ad3e90 Merge pull request #538 from DiUS/dev
Fixed RAM_CONST_ATTR macro.
2015-07-11 12:13:26 +08:00
Johny Mattsson dd38a0a0e6 Imported reworked rtctime support. 2015-07-10 16:16:25 +10:00
Johny Mattsson 09410d55c6 Added SNTP module, for easy time sync.
Integrates with the rtctime component if it's available.
2015-07-10 15:12:31 +10:00
Johny Mattsson 67e72c45df Imported RTC FIFO component + added Lua interface.
The rtcfifo module uses RTC memory to store sensor samples across deep-sleeps,
making it possible to batch up samples for less frequent uploads. This
component uses 9 RTC memory slots for control, and a variable number of
slots for sample storage (see rtcfifo.prepare() on how to control the
size/location of the latter).

When used together with the rtctime module, it also exposes the convenience
function rtcfifo.dsleep_until_sample() which can be used to easily take
readings on a regular basis without having to manually take into account
time spent awake to get an accurate sleep time.

The format used for storing samples is quite dense, and allows for 16 bits
of data in a fixed point format (per sample).
2015-07-10 15:12:31 +10:00
Johny Mattsson 2187424928 Imported RTC+sleep timekeeping from an internal DiUS project.
Added Lua module rtctime to interface with it.

This keeps as accurate time as is possible on the ESP8266, including across
deep sleeps (provided rtctime.dsleep() is used rather than node.dsleep()).
Intended to be used together with NTP for high accuracy time keeping. The
API is via rtctime.{get,set}timeofday(), working from Unix epoch.

Note that 160MHz CPU clock is not currently supported by the rtctime code,
as it is only aware of the 52MHz boot clock and the regular 80Mhz default
clock.

See rtctime.h for detailed info on how this all works.
2015-07-10 15:12:31 +10:00
Johny Mattsson 1a613effeb Imported RTC access from a DiUS internal project.
Added Lua access module named "rtcmem" for read/write of RTC user module.
2015-07-10 15:10:15 +10:00
Johny Mattsson 6ad2666182 Declare wifi.ap.getconfig() in the right map. 2015-07-10 14:01:38 +10:00
Johny Mattsson ebfc808629 Fixed RAM_CONST_ATTR macro.
I must've gotten distracted halfway through that copy/paste job :(
2015-07-08 17:51:44 +10:00
devsaurus e58b7671fe Merge remote-tracking branch 'upstream/dev' into dev 2015-07-06 19:43:53 +02:00
vowstar 67d785ffec Restore default data and init data before system restore. 2015-07-04 04:27:59 +08:00
vowstar b6e431ebed Merge branch 'dev' of https://github.com/nodemcu/nodemcu-firmware into dev 2015-07-04 03:55:02 +08:00
vowstar 89aaf475d0 Add node.restore().
If NodeMCU can't connect Wi-Fi, please use it.
After reboot, all will be OK.
RESTORE ITEMS:
wifi_station_set_auto_connect, wifi_set_phy_mode, wifi_softap_set_config,  wifi_station_set_config, wifi_set_opmode.
2015-07-04 03:54:22 +08:00
Vowstar f5938dfe17 Will made some modules default off.
Need discussion. And turn off some modules by default.
May our community should build more version?
2015-07-04 02:51:41 +08:00
Vowstar 5279dc9dfc Merge pull request #525 from kbeckmann/ws2801_disable_default
Disabled WS2801 module
2015-07-04 02:48:44 +08:00
vowstar 2224f24dad Merge branch 'dev096' of https://github.com/nodemcu/nodemcu-firmware into dev 2015-07-04 02:31:15 +08:00
vowstar 638bf7b023 Merge branch 'dev' of https://github.com/nodemcu/nodemcu-firmware into dev 2015-07-04 02:28:31 +08:00
vowstar fb0e4722b8 Fix and support Wi-Fi smart link (esp-touch and air-kiss).
Espressif open-source android and iOs APP,
See also https://github.com/espressifapp
Note: Must use ESP-TOUCH-V021 in espressif app history.
2015-07-04 02:27:51 +08:00
Konrad Beckmann 485e5a3140 Disabled WS2801 module 2015-07-03 12:35:47 +02:00
devsaurus 414a0478be Merge remote-tracking branch 'upstream/dev' into dev 2015-07-02 20:49:39 +02:00
Vowstar 877275d897 Merge pull request #522 from kbeckmann/dev
Added WS2801 support
2015-07-02 22:01:45 +08:00
Vowstar cfe5b23b47 Merge pull request #523 from DiUS/dio-fix
Workaround write-protected flash when using esptool.py to flash in DIO mode
2015-07-02 21:53:35 +08:00
Johny Mattsson 9eda352e50 Workaround for DIO mode leaving flash in write-protect. 2015-07-02 20:11:03 +10:00
Johny Mattsson 8394333cab Pull in upstream fixes for getting board into flash mode. 2015-07-02 20:10:57 +10:00
Konrad Beckmann 3d3c2431b3 Added WS2801 support 2015-07-02 00:50:26 +02:00
Vowstar 125d2173d6 Merge pull request #519 from md5crypt/tmr_module
rewrote the timer module from scratch
2015-06-30 15:50:08 +08:00
Luna 2691383696 added tmr.interval 2015-06-29 23:15:30 +02:00
Luna c1d2eb413b rewrote the timer module from scratch 2015-06-29 21:19:24 +02:00
Vowstar aa710d1f53 Merge pull request #513 from NodeUSB/dev096
update 433MHz transmission comment, add static ICACHE_FLASH_ATTR flag
2015-06-28 14:55:07 +08:00
Mike Wen 66ca7f6aca update 433MHz transmission comment, add static ICACHE_FLASH_ATTR flag 2015-06-27 18:14:24 -04:00
Mike Wen cf72a3203d update 433MHz transmission doc, add static ICACHE_FLASH_ATTR flag 2015-06-27 14:42:39 -04:00
devsaurus 7d20dd74e3 Merge remote-tracking branch 'upstream/dev' into dev 2015-06-27 10:19:15 +02:00
vowstar dce0d2c2a8 Release build 20150627.
fixed ap/station-ap cannot connect to the device.
added wifi.ap.getconfig().
fixed net.dns.getdnsserver().
added new base64 lua example.
added node.bootreason() to inspect boot cause.
optimization of u8g.
2015-06-27 15:21:48 +08:00
vowstar 663158e4ab added wifi.ap.getconfig() by @md5crypt https://github.com/nodemcu/nodemcu-firmware/pull/500/files#diff-81824fe90d00138d98b6e9f0d7d8c7dcL1458. 2015-06-27 12:30:36 +08:00
vowstar a32df17579 Fixed net.dns.getdnsserver() by @md5crypt. 2015-06-27 12:26:24 +08:00
vowstar 11ca2bc096 Merge branch 'newbase64' of https://github.com/md5crypt/nodemcu-firmware into dev
Conflicts:
	app/Makefile
	app/dhtlib/dht.c
	app/include/user_version.h
2015-06-27 11:47:44 +08:00
Vowstar 2ab4de9c09 Merge pull request #512 from jmattsson/boot-reason
Expose boot reason in Lua
2015-06-27 11:25:35 +08:00
Johny Mattsson 7bd10e8a17 Added node.bootreason() to inspect boot cause. 2015-06-27 12:34:03 +10:00
Vowstar 0c064bf026 Merge pull request #511 from jmattsson/fix-dhcpserver-const
Unbreak AP mode after rodata changes
2015-06-27 10:32:24 +08:00
Johny Mattsson b5c6a5b1c6 Stop dhcpserver from writing to const data. 2015-06-27 12:12:21 +10:00
devsaurus 388a0b4eda Merge pull request #4 from nodemcu/dev
Merge upstream dev to dev
2015-06-26 21:33:18 +02:00
Vowstar d507060ecf Merge pull request #509 from devsaurus/dev-irom0
Unify memory section usage for u8g
2015-06-27 00:04:46 +08:00
Vowstar 5cbd0fec13 Update change log.
Make change log latest.
2015-06-23 Move constants to ROM. Frees up 16k+ of RAM
2015-06-17 Add dhtlib for DHT11/21/22/33/44, port from Arduino
2015-06-12 Add 433MHz transmission
2015-06-02 Crypto library with unified interface
2015-05-27 Re-add ws2812.write()
2015-05-26 Add crypto module initially containing sha1 and base64_encode
2015-05-23 Added wifi.getchannel
2015-05-18 Changed wifi_setip() to allow setting SoftAP gateway to 0.0.0.0
2015-05-17 Added net.dns.setdnsserver and net.dns.getdnsserver, add support for lm92 temperature sensor
2015-05-16 Implement getStrWidth() and setFontLineSpacingFactor()
2015-05-14 Add -Os flag to release and debug builds
2015-05-12 Changed output format of table that is output by wifi_scan_done
2015-05-11 Added ability to set scan configuration to wifi.sta.getap
2015-05-09 Added function wifi.sta.getconfig()
2015-05-07 Allow connecting to unsecured WiFi networks
2015-04-27 Add setphymode and getphymode to wifi module
2015-04-15 Add multicastJoin and multicastLeave to net module
2015-04-14 Add Yeelink Modules
2015-06-26 19:12:06 +08:00
vowstar dda121e5e0 Release 0.9.6-dev_20150625 2015-06-26 18:32:46 +08:00
Vowstar bfd2b634f9 Merge pull request #505 from nodemcu/dev
Important merge form dev to dev096. Save RAM.
2015-06-26 18:09:15 +08:00
Vowstar 2c53149bee Merge pull request #504 from DiUS/loadnon32
Move const data to ROM, freeing up ~16k of RAM
2015-06-26 13:33:40 +08:00
Vowstar 0f407a820a Merge pull request #502 from nodemcu/dev
Merge dev to dev096
2015-06-25 18:13:31 +08:00
Vowstar 7d38687767 Merge pull request #499 from marcelstoer/dev
Keep SDK internally rather than fetching the one from GeorgHahn
2015-06-25 11:10:26 +08:00
Luna b4f0c2d1ee another one 2015-06-25 01:35:50 +02:00
devsaurus 277c6d0116 move u8g progmem constants to new .rodata sections
this simplifies the overall memory handling based on the irom support by @jmattsson
2015-06-25 00:38:11 +02:00