]> hydra-www.ietfng.org Git - acmetensortoys-esp-lua_core/log
acmetensortoys-esp-lua_core
6 years agotelnetd: switch from fifosock to pipe
Nathaniel Wesley Filardo [Sun, 31 May 2020 18:55:17 +0000 (19:55 +0100)]
telnetd: switch from fifosock to pipe

6 years agoutil/diag: expand
Nathaniel Wesley Filardo [Sun, 31 May 2020 18:49:52 +0000 (19:49 +0100)]
util/diag: expand

6 years agoinit: expose stop() even on panic
Nathaniel Wesley Filardo [Mon, 13 Jan 2020 23:01:07 +0000 (23:01 +0000)]
init: expose stop() even on panic

6 years agoutil/diag: pairs, not ipairs
Nathaniel Wesley Filardo [Sat, 4 Jan 2020 19:04:23 +0000 (19:04 +0000)]
util/diag: pairs, not ipairs

Bugfix on d6b5a4b254710a389dbd8b9e729239dc20ec056c

6 years agopcall sntp to dodge panics
Nathaniel Wesley Filardo [Thu, 26 Dec 2019 00:39:16 +0000 (00:39 +0000)]
pcall sntp to dodge panics

Since sntp is mostly an autonomic thing, it's perhaps fine to drop these
on the floor.

For example, we might have a sync in progress, which throws.

6 years agodiag: catch up with upstream
Nathaniel Wesley Filardo [Thu, 26 Dec 2019 00:38:22 +0000 (00:38 +0000)]
diag: catch up with upstream

15afa7fd2e7f96f2d59de564d12c9ad6954a7709 exposes more via node.info(),
but requires that we tell it what we want

6 years agonwfmqtt: catch up with upstream
Nathaniel Wesley Filardo [Thu, 26 Dec 2019 00:36:19 +0000 (00:36 +0000)]
nwfmqtt: catch up with upstream

9f8b74debd9f030d63f8b4db3db07bc15b748765 made secure a boolean

6 years agonwfmqtt: refactor fifo interposition
Nathaniel Wesley Filardo [Fri, 4 Oct 2019 17:03:48 +0000 (18:03 +0100)]
nwfmqtt: refactor fifo interposition

Expose the wrapper as its own operation and switch to a single FIFO for
all of sub/unsub/pub operations.

6 years agonwfmqtt: interpose on pub/sub/unsub with fifo
Nathaniel Wesley Filardo [Sat, 6 Jul 2019 23:26:18 +0000 (00:26 +0100)]
nwfmqtt: interpose on pub/sub/unsub with fifo

Blech, but this way we don't confuse the underlying mqtt module by
ever trying to, say, subscribe twice before the server's gotten
back to us.

6 years agoRemove nwfnet.conf2
Nathaniel Wesley Filardo [Sat, 6 Jul 2019 20:44:39 +0000 (21:44 +0100)]
Remove nwfnet.conf2

Once upon a time, it was useful because wifi.sta.config() wrote its
changes to flash and we wanted to minimize wear and tear.  Those days
are long past.

Similarly, the utility of nwfnet-sntp is decreasing with time.  Let it
just default as upstream does now.

6 years agonet/nwfmqtt: fix handling of the "secure" option
Nathaniel Wesley Filardo [Sat, 6 Jul 2019 19:18:37 +0000 (20:18 +0100)]
net/nwfmqtt: fix handling of the "secure" option

Really wants a number and not a boolean, apparently.  Ick, I should
fix that upstream, but for the moment, just use the parsed value or 0.

6 years agonwfmqtt: remove deprecated autoreconn option
Nathaniel Wesley Filardo [Sat, 29 Jun 2019 14:36:24 +0000 (15:36 +0100)]
nwfmqtt: remove deprecated autoreconn option

NFC; it was false anyway.

7 years agoRemove fifo; has been pushed upstream
Nathaniel Wesley Filardo [Fri, 22 Feb 2019 23:26:57 +0000 (23:26 +0000)]
Remove fifo; has been pushed upstream

Keep fifotest and fifodiag, tho', which may be useful and were
inappropriate to send upstream.

7 years agofifosock: coalesce when possible before sending
Nathaniel Wesley Filardo [Wed, 6 Feb 2019 05:00:45 +0000 (05:00 +0000)]
fifosock: coalesce when possible before sending

Bigger packets going out can't hurt, right?  Idea stolen from TerryE's
original two-stage fifo, but ported to more generic fifo core and
combined with earlier fifosock work.

7 years agotelnet-file: sha256 use hex for convenience; dox
Nathaniel Wesley Filardo [Wed, 6 Feb 2019 00:52:38 +0000 (00:52 +0000)]
telnet-file: sha256 use hex for convenience; dox

7 years agoUpdate dox
Nathaniel Wesley Filardo [Wed, 6 Feb 2019 00:50:28 +0000 (00:50 +0000)]
Update dox

7 years agofifo{,sock}: lazy and "phantom" function entries
Nathaniel Wesley Filardo [Wed, 6 Feb 2019 00:34:35 +0000 (00:34 +0000)]
fifo{,sock}: lazy and "phantom" function entries

fifo already supported functions acting as lazy generators of events, so
now teach it about phantom entries (which just cause additional
dequeueing).

Push support down into fifosock and add tests.

7 years agoinit: switch to OO tmr interface
Nathaniel Wesley Filardo [Tue, 8 Jan 2019 19:39:07 +0000 (19:39 +0000)]
init: switch to OO tmr interface

We now assume exclusively the use of OO timers, so always use the
"t:alarm(...)" form rather than "tmr.alarm(t, ...)".

7 years agoDrop panic linger time to 60 seconds from 300
Nathaniel Wesley Filardo [Sun, 4 Nov 2018 17:21:42 +0000 (17:21 +0000)]
Drop panic linger time to 60 seconds from 300

7 years agonwfmqtt: remove deprecated heartbeat function
Nathaniel Wesley Filardo [Sun, 12 Aug 2018 13:58:23 +0000 (14:58 +0100)]
nwfmqtt: remove deprecated heartbeat function

This also drops another use of tq from the tree

7 years agonwfnet-go: behavioral changes
Nathaniel Wesley Filardo [Sun, 12 Aug 2018 11:06:03 +0000 (12:06 +0100)]
nwfnet-go: behavioral changes

don't persist changes
don't remove primary configuration file
don't configure softap, since we don't really support it

7 years agoTree tidying
Nathaniel Wesley Filardo [Sun, 12 Aug 2018 10:27:02 +0000 (11:27 +0100)]
Tree tidying

7 years agoRework in light of LFS
Nathaniel Wesley Filardo [Sat, 11 Aug 2018 22:52:22 +0000 (23:52 +0100)]
Rework in light of LFS

7 years agoNew fifosock implementation
Nathaniel Wesley Filardo [Sun, 12 Aug 2018 10:22:46 +0000 (11:22 +0100)]
New fifosock implementation

Two-layer approach borrowing from TerryE's example telnet server

7 years agoFix fifotest in light of tq API changes
Nathaniel Wesley Filardo [Sat, 11 Aug 2018 22:53:37 +0000 (23:53 +0100)]
Fix fifotest in light of tq API changes

7 years agoMove morsetest where it belongs
Nathaniel Wesley Filardo [Sat, 11 Aug 2018 22:53:10 +0000 (23:53 +0100)]
Move morsetest where it belongs

8 years agotelnetd: diag "restart" command
Nathaniel Wesley Filardo [Thu, 14 Dec 2017 21:16:41 +0000 (16:16 -0500)]
telnetd: diag "restart" command

It's a bit of a pain to restart a node over telnet using "diag exec"
because network callbacks will crash due to races(?) against
node.restart if that's dispatched immediately.  Add a command to
dispatch it "soon".

8 years agonwfnet-go: move to modern wifi configuration
Nathaniel Wesley Filardo [Fri, 10 Nov 2017 22:06:04 +0000 (17:06 -0500)]
nwfnet-go: move to modern wifi configuration

8 years agoBegin deprecation of tq in favor of dyn. tmr API
Nathaniel Wesley Filardo [Sat, 5 Aug 2017 08:29:01 +0000 (04:29 -0400)]
Begin deprecation of tq in favor of dyn. tmr API

8 years agoadd telnetd-file sha256 subcommand
Nathaniel Wesley Filardo [Fri, 4 Aug 2017 20:04:24 +0000 (16:04 -0400)]
add telnetd-file sha256 subcommand

8 years agoFurther robustify host/pushcommon
Nathaniel Wesley Filardo [Fri, 4 Aug 2017 20:04:13 +0000 (16:04 -0400)]
Further robustify host/pushcommon

8 years agohost/pushcommon: use dirname $0 to find pushvia
Nathaniel Wesley Filardo [Tue, 1 Aug 2017 00:20:09 +0000 (20:20 -0400)]
host/pushcommon: use dirname $0 to find pushvia

8 years agotelnetd-diag: add 'send' to 'exec' interp. scope
Nathaniel Wesley Filardo [Mon, 31 Jul 2017 09:04:23 +0000 (05:04 -0400)]
telnetd-diag: add 'send' to 'exec' interp. scope

8 years agodoc improvements
Nathaniel Wesley Filardo [Sun, 30 Jul 2017 07:20:14 +0000 (03:20 -0400)]
doc improvements

8 years agopush* scripts: use luasrcdiet if directed
Nathaniel Wesley Filardo [Sun, 30 Jul 2017 01:34:55 +0000 (21:34 -0400)]
push* scripts: use luasrcdiet if directed

If ${LUADIET} is empty, send files as they are; otherwise, stream them
through luasrcdiet.  To use the default options, use 'LUADIET=' '" or
something to that effect.  This can be set per-file, should some module
turn out to be broken by dieting.

The "dopush" utility macro is split and now called "dopushlua" and
"dopushtext" (which skips luasrcdiet even if it is engaged).

8 years agoAdd luasrcdiet submodule
Nathaniel Wesley Filardo [Sat, 29 Jul 2017 21:51:43 +0000 (17:51 -0400)]
Add luasrcdiet submodule

8 years agoExpunge cjson in favor of sjson
Nathaniel Wesley Filardo [Sat, 29 Jul 2017 20:29:13 +0000 (16:29 -0400)]
Expunge cjson in favor of sjson

8 years agoMove loop over filesystem compilation to own file
Nathaniel Wesley Filardo [Sat, 29 Jul 2017 20:22:46 +0000 (16:22 -0400)]
Move loop over filesystem compilation to own file

8 years agoi2c utilities
Nathaniel Wesley Filardo [Sat, 29 Jul 2017 20:16:51 +0000 (16:16 -0400)]
i2c utilities

8 years ago1Wire utilities
Nathaniel Wesley Filardo [Sat, 29 Jul 2017 20:16:37 +0000 (16:16 -0400)]
1Wire utilities

8 years agofix typo in telnetd-diag rtcfifo
Nathaniel Wesley Filardo [Sat, 29 Jul 2017 20:12:00 +0000 (16:12 -0400)]
fix typo in telnetd-diag rtcfifo

8 years agopushvia.expect: raise timeout to 15 seconds
Nathaniel Wesley Filardo [Sat, 29 Jul 2017 20:11:19 +0000 (16:11 -0400)]
pushvia.expect: raise timeout to 15 seconds

8 years agofifosock: dramatically simplify
Nathaniel Wesley Filardo [Sat, 29 Jul 2017 20:09:42 +0000 (16:09 -0400)]
fifosock: dramatically simplify

All we really need here is a thin shim around send; stop trying to be
clever, it just makes things obfucsated when they go wrong.

Chase consequences around the tree.  Extensive testing was done looking
for memory leaks despite the newfound simplicity, with none found.

8 years agoinit: Add 'go()' to skip wait at boot
Nathaniel Wesley Filardo [Sat, 29 Jul 2017 20:08:16 +0000 (16:08 -0400)]
init: Add 'go()' to skip wait at boot

While here, fix indentation

8 years agotq bugfixes (and API change)
Nathaniel Wesley Filardo [Sat, 29 Jul 2017 19:32:45 +0000 (15:32 -0400)]
tq bugfixes (and API change)

- not all lapsed time should be credited to the head node
- needs to reset the time base (_tst) in all cases
- always return the object for cancellation
- defend against time going backwards (just in case)

While here, rework to simplify, simplify API, and add comments

8 years agoMerge branch 'master' of https://github.com/AcmeTensorToys/esp-lua
Rachael [Sat, 8 Jul 2017 23:52:11 +0000 (16:52 -0700)]
Merge branch 'master' of https://github.com/AcmeTensorToys/esp-lua

8 years agoinit tweaks
Nathaniel Wesley Filardo [Sat, 8 Jul 2017 23:40:00 +0000 (19:40 -0400)]
init tweaks

Workaround cjson to sjson migration upstream with an ugly hack
Add an early init hook for framework plugins

9 years agotries to implement rgb --> hsl -> rgb, but fails compiling for an index out of range...
Rachael [Sun, 30 Apr 2017 21:32:54 +0000 (14:32 -0700)]
tries to implement rgb --> hsl -> rgb, but fails compiling for an index out of range exception

9 years agoMerge branch 'master' of https://github.com/AcmeTensorToys/esp-lua
Rachael [Thu, 27 Apr 2017 03:17:30 +0000 (20:17 -0700)]
Merge branch 'master' of https://github.com/AcmeTensorToys/esp-lua

9 years agoMerge branch 'master' of https://github.com/AcmeTensorToys/esp-lua
Rachael [Thu, 13 Apr 2017 03:59:05 +0000 (20:59 -0700)]
Merge branch 'master' of https://github.com/AcmeTensorToys/esp-lua

9 years agoinit: no real need for that metatable
Nathaniel Wesley Filardo [Mon, 30 Jan 2017 20:08:09 +0000 (15:08 -0500)]
init: no real need for that metatable

9 years agonwfnet-go: Just delete the config file already
Nathaniel Wesley Filardo [Mon, 30 Jan 2017 20:07:37 +0000 (15:07 -0500)]
nwfnet-go: Just delete the config file already

Unless explicitly told to keep it for some reason.

9 years agoutil/diag: loaded packages printout
Nathaniel Wesley Filardo [Mon, 30 Jan 2017 20:07:15 +0000 (15:07 -0500)]
util/diag: loaded packages printout

9 years agonwfnet-sntp: silence uninformative printout
Nathaniel Wesley Filardo [Mon, 30 Jan 2017 20:06:52 +0000 (15:06 -0500)]
nwfnet-sntp: silence uninformative printout

9 years agonwfnet-go: don't hard depend on mDNS
Nathaniel Wesley Filardo [Mon, 23 Jan 2017 01:03:10 +0000 (20:03 -0500)]
nwfnet-go: don't hard depend on mDNS

Some examples don't need it, so work even if it's not present

9 years agoFork dvv-nodemcu-things lcd1602
Nathaniel Wesley Filardo [Mon, 23 Jan 2017 00:59:18 +0000 (19:59 -0500)]
Fork dvv-nodemcu-things lcd1602

Improve initialization sequence, remove buggy 'run' method.
This file and all changes to it retain the original (MIT) license,
independent of the rest of this project.

9 years agonet/*: Robustify calls to json parsers
Nathaniel Wesley Filardo [Tue, 17 Jan 2017 08:59:19 +0000 (03:59 -0500)]
net/*: Robustify calls to json parsers

9 years agoutil/diag: robustify
Nathaniel Wesley Filardo [Tue, 17 Jan 2017 06:41:57 +0000 (01:41 -0500)]
util/diag: robustify

9 years agonwfnet: callback tables weak keys
Nathaniel Wesley Filardo [Tue, 17 Jan 2017 06:41:42 +0000 (01:41 -0500)]
nwfnet: callback tables weak keys

9 years agoAdd deprecation comments to some util functions
Nathaniel Wesley Filardo [Tue, 17 Jan 2017 06:41:11 +0000 (01:41 -0500)]
Add deprecation comments to some util functions

9 years agozshify host push tools
Nathaniel Wesley Filardo [Tue, 17 Jan 2017 06:40:47 +0000 (01:40 -0500)]
zshify host push tools

9 years agoAdd external modules
Nathaniel Wesley Filardo [Tue, 17 Jan 2017 05:55:23 +0000 (00:55 -0500)]
Add external modules

9 years agoFix typos in morse table
Nathaniel Wesley Filardo [Wed, 28 Dec 2016 02:34:39 +0000 (21:34 -0500)]
Fix typos in morse table

9 years agoMerge branch 'master' of https://github.com/AcmeTensorToys/esp-lua
Rachael [Mon, 2 Jan 2017 18:51:15 +0000 (10:51 -0800)]
Merge branch 'master' of https://github.com/AcmeTensorToys/esp-lua

9 years agoFix typos in morse table
Nathaniel Wesley Filardo [Wed, 28 Dec 2016 02:34:39 +0000 (21:34 -0500)]
Fix typos in morse table

9 years agoNew morse module
Nathaniel Wesley Filardo [Fri, 16 Dec 2016 05:59:54 +0000 (00:59 -0500)]
New morse module

9 years agoMerge remote-tracking branch 'github/master'
Nathaniel Wesley Filardo [Mon, 21 Nov 2016 21:50:05 +0000 (16:50 -0500)]
Merge remote-tracking branch 'github/master'

9 years agoPlumbing: modularize fifo, improve tq
Nathaniel Wesley Filardo [Mon, 21 Nov 2016 00:10:24 +0000 (19:10 -0500)]
Plumbing: modularize fifo, improve tq

9 years agoMissed 'local' in nwfmqtt
Nathaniel Wesley Filardo [Mon, 21 Nov 2016 00:12:28 +0000 (19:12 -0500)]
Missed 'local' in nwfmqtt

9 years agoSlightly improve MQTT client construction
Nathaniel Wesley Filardo [Thu, 13 Oct 2016 23:09:52 +0000 (19:09 -0400)]
Slightly improve MQTT client construction

Add early check for nil user and password
Add support for cleansession flag from JSON file

9 years agoAdd COPYING and README.rst
Nathaniel Wesley Filardo [Tue, 11 Oct 2016 23:39:44 +0000 (19:39 -0400)]
Add COPYING and README.rst

9 years agohost/pushcommon.sh for push scripts
Nathaniel Wesley Filardo [Tue, 11 Oct 2016 22:09:45 +0000 (18:09 -0400)]
host/pushcommon.sh for push scripts

9 years agoInitial checkin of framework and lamp example
Nathaniel Wesley Filardo [Fri, 7 Oct 2016 03:27:43 +0000 (23:27 -0400)]
Initial checkin of framework and lamp example