Commit Graph

2251 Commits

Author SHA1 Message Date
M.K 3aba085f82 Clarify LFS build info is its size (#3022) 2020-06-09 22:26:52 +02:00
Nikolay Fiykov 2ae9af58fc Expose CPU CCOUNT register as tmr function (#2906) 2020-06-09 22:26:52 +02:00
galjonsfigur 50d88f7731 Fix compile warning and set correct order in module LROT (#2996) 2020-06-09 22:26:52 +02:00
Lukáš Voborský cd9da6463c Add CRC check (#2992)
Also clean-up a nasty `ow` module example.
2020-06-09 22:26:52 +02:00
M.K 27e127e7ea Minor typo and wording fixes (#2991) 2020-06-09 22:26:52 +02:00
galjonsfigur 6926c66b16 Polish Lua examples (#2846)
* Add missing globals from luacheck config

* Fix luacheck warnings in all lua files

* Re-enable luacheck in Travis

* Speed up Travis by using preinstalled LuaRocks

* Fix more luacheck warnings in httpserver lua module

* Fix DCC module and add appropriate definitions to luacheck config.

* Change inline comments from ignoring block to only ignore specific line

* Add Luacheck for Windows and enable it for both Windows and Linux

* Change luacheck exceptions and fix errors from 1st round of polishing

* Add retry and timeout params to wget
2020-06-09 22:26:52 +02:00
Lukáš Voborský 36df8d009f Add DCC decoder module (#2905) 2020-06-09 22:26:06 +02:00
galjonsfigur db1e4454de Initial version of software UART C module (#2673) 2020-06-09 22:26:06 +02:00
Nathaniel Wesley Filardo 863dfb59ed SSL rampage (#2938)
* Remove stale putative MD2 support

This hasn't worked in a while, presumably since one of our upstream
merges.  Don't bother making it work, since MD2 is generally considered
insecure.

* Land mbedtls 2.16.3-77-gf02988e57

* TLS: remove some dead code from espconn_mbedtls

There was some... frankly kind of scary buffer and data shuffling if
ESP8266_PLATFORM was defined.  Since we don't, in fact, define that
preprocessor symbol, just drop the code lest anyone (possibly future-me)
be scared.

* TLS: espconn_mbedtls: run through astyle

No functional changes

* TLS: espconn_mbedtls: put the file_params on the stack

There's no need to malloc a structure that's used only locally.

* TLS: Further minor tidying of mbedtls glue

What an absolute shitshow this is.  mbedtls should absolutely not
be mentioned inside sys/socket.h and app/mbedtls/app/lwIPSocket.c is not
so much glue as it as a complete copy of a random subset of lwIP; it
should go, but we aren't there yet.

Get rid of the mysterious "mbedlts_record" struct, which housed merely a
length of bytes sent solely for gating the "record sent" callback.

Remove spurious __attribute__((weak)) from symbols not otherwise
defined and rename them to emphasize that they are not actually part of
mbedtls proper.

* TLS: Rampage esp mbedtls glue and delete unused code

This at least makes the shitshow smaller

* TLS: lwip: fix some memp definitions

I presume these also need the new arguments

* TLS: Remove more non-NodeMCU code from our mbedtls

* TLS: drop support for 1.1

Depending on who you ask it's either EOL already or EOL soon, so
we may as well get rid of it now.
2020-06-09 22:26:06 +02:00
Andreas f56722074a fixed missing forward declaration (#2975) 2020-06-09 22:26:06 +02:00
Nathaniel Wesley Filardo 948325a996 New `net.if.info` call to show LwIP information (#2862)
* Remove app/include/netif/wlan_lwip_if.h

This file appears to be unused in our tree.

* New `net.if.info` call to show LwIP information

This is a generalization of `wifi.sta`'s and `wifi.ap`'s `getip` and
`getmac` calls.  I don't propose to deprecate those, but perhaps we
should, in the documentation, point users at this function instead.

The direct motivation is to permit continued use of DHCP-provided NTP
servers in a future where
https://github.com/nodemcu/nodemcu-firmware/pull/2819 has landed, now
that https://github.com/nodemcu/nodemcu-firmware/pull/2709 is in the
tree.  But rather than exposing just that information, a more general
interface seems useful.
2020-06-09 22:26:06 +02:00
Marcel Stör 1b4b442142 Streaming support for hx711 (#2915) 2020-06-09 22:26:06 +02:00
Gregor Hartmann d4b5b0cbaf Fixes for `ws2812` and `ws2812_effects` (#2953)
* clean effects library
* Fix several issues in ws2812 and effects
* Implement working way of calling shift from callback
2020-06-09 22:26:06 +02:00
Lukáš Voborský e7be7644c0 Update sensor driver for BME680 to 3.5.9 (#2969) 2020-06-09 22:26:06 +02:00
Gregor Hartmann bfcccbf0b4 Improve httpserver documentation (#2971) 2020-06-09 22:26:06 +02:00
Johan Ström e9199a5316 Improve MQTT documentation (#2967) 2020-06-09 22:26:06 +02:00
Matsievskiy S.V 1759ebb360 fix lfs upload issue 2020-06-09 22:26:06 +02:00
Marcel Stör 0a453caf79 Fix typos 2020-06-09 22:26:06 +02:00
Nathaniel Wesley Filardo 282ebd100d Deprecate crypto.to{Hex,Base64} (#2929)
The internal implementation already preferentially forwards to the
encoder module, so we should just remove these functions as they confuse
people into thinking that we don't have their inverses (see the feature
request https://github.com/nodemcu/nodemcu-firmware/issues/2907).

Update the docs to refer to the encoder version and add deprecation
warnings to the runtime implementations.
2020-06-09 22:26:06 +02:00
Marcel Stör da53d1938f Fix invalid smartconfig include
Fixes #2928, #2923
2020-06-09 22:26:06 +02:00
Marcel Stör 08ea0c8d27 Remove superfluous module def
Fixes #2920
2020-06-09 22:26:06 +02:00
Marcel Stör 16b2cc5107 Revert "Add streaming support for hx711 device (#2793)" (#2914)
This reverts commit 32ad759409.
2020-06-09 22:26:06 +02:00
Philip Gladstone 9809a607fd Add streaming support for hx711 device (#2793) 2020-06-09 22:26:06 +02:00
Terry Ellison 08426e48f1 Rebased against current dev, tweaks for clean compile 2020-06-09 22:26:06 +02:00
Terry Ellison 6d81dd6c0a Rebased against current dev 2020-06-09 22:26:06 +02:00
Terry Ellison ce2e50c651 Updates following JM review 2020-06-09 22:26:06 +02:00
Terry Ellison 50b69d8487 Add telnet example 2020-06-09 22:26:06 +02:00
Terry Ellison e7c29fe38e Lua 5.1 to 5.3 realignement phase 1 2020-06-09 22:26:06 +02:00
Edvinas 3d91785018
Bugfix conn metatable method call (#3012)
Here `conn` is net.socket instance, so it should be called as one.
Otherwise request is very likely to end up with crash and PANIC.
2020-02-23 09:46:35 -08:00
Marcel Stör 71a182caa7 Use new GitHub issue templates 2020-01-06 14:21:25 +01:00
Terry Ellison 310faf7fcc
Merge pull request #2886 from nodemcu/dev
Next master drop
2019-09-07 10:45:18 +01:00
Marcel Stör a08e74d9ad Complement list of missing standard Lua modules 2019-08-27 22:13:17 +02:00
Gregor Hartmann 739b675b72 add build_date to build info (#2888) 2019-08-15 12:33:22 +02:00
Marcel Stör 0b90495517 Fix node.info() 2019-08-06 23:30:55 +02:00
Gregor Hartmann 537c6f9909 Re-enabling test-compiling all Lua files during CI (#2877) 2019-08-06 12:36:50 +02:00
Nathaniel Wesley Filardo 15afa7fd2e
Merge pull request #2830 from HHHartmann/Extend-node.info
Extend node.info
2019-08-04 20:52:41 +01:00
Nathaniel Wesley Filardo ad9f3bdb56 Be more assertive in the TLS documentation (#2874)
We just don't have the memory to be a real TLS client on the 8266.  Put
that in a big box and point at it from the http and mqtt modules; others
may also wish to give reference.
2019-08-04 12:19:32 +02:00
Marcel Stör 7d02e5a75c Change version in title to 3.0
Fixes #2840
2019-08-01 22:03:09 +02:00
Gregor Hartmann 0659e5529e Fix enduser_setup default POST request (#2852) 2019-08-01 21:31:18 +02:00
Nathaniel Wesley Filardo 49ac968bde Lost fixes to nodemcu-partition.py (#2861) 2019-07-27 14:21:52 +02:00
Nathaniel Wesley Filardo 7d387dd4d6 Simplify and tidy SNTP (#2700)
* list_ref can become LUA_REFNIL, because that's what rawgeti returns
  for LUA_NOREF.  Defensively guard for this, rather than falling into
  the sntp_dolookups loop with nil on the stack.

* set_repeat_mode should not call itself, but should rather always do
  what it's going to do and then optionally do the rest if directed.

* sntp_sync should not try to special case the single string argument:
  we should be queueing that name for DNS resolution, too.  Towards that
  end, if we are given a single string, build a table and make that the
  list_ref and call off to sntp_dolookups, just like we otherwise do.

FIXES: #2699
2019-07-27 14:20:26 +02:00
Nathaniel Wesley Filardo 3d30c985cb Clarify DNS callbacks (#2860) 2019-07-27 14:18:34 +02:00
Gregor Hartmann d054d17694
adapt sed calls for macOS 2019-07-27 13:09:11 +02:00
Gregor Hartmann 825e35053f
have common capitalization in startup message 2019-07-27 12:55:34 +02:00
Gregor 0ff3084fe3 small fixes as outcome of review 2019-07-27 08:27:19 +02:00
Gregor Hartmann 73e6651fe8 Add support for DCHP NTP server (option 42) (#2709)
* Add DHCP option 42 / NTP

* Update dhcp.c

* resolve merge conflict

* add lineend at end of file

* fix merge conflict resolution error
2019-07-27 08:21:35 +02:00
Gregor 9eec82fead Get DTS in UTC as Marcel proposed. 2019-07-27 05:36:06 +00:00
Gregor 06666a7854 using lua_setfield now 2019-07-27 05:36:06 +00:00
Gregor 5fafa6378c change to better UI and get information directly from .h file 2019-07-27 05:36:06 +00:00
Gregor dd1f875283 Fix typos and small enhancement of docu 2019-07-27 05:36:06 +00:00