Commit Graph

15 Commits (7b8d5d7552a6a0ae00a0eb7afabe4237415af4c7)

Author SHA1 Message Date
David Kebler 7b8d5d7552 0.3.3 Bug fix - Make sure that the number key for the interrupts map is ALWAYS a number even if string is passed 2020-07-27 14:10:47 -07:00
David Kebler 62f747d992 0.3.1 major refactor of interrupts vs interrupt
interrupt class can be added multiple times to interrupts with just emitter via new dynamic extends
if used one off can still use uci-base
Both classes will only will only push on interrupt and bother create a socket listener
There is special 'interrupt' log level for easier watching of interrupt events

Added a much imporved multi example that reads in a yaml file of options
added yalc support on remote.  run yalcu in terminal to have syncd ~/.yalc be updated to package while devloping
2020-03-24 14:41:14 -07:00
David Kebler 610aa53a93 0.2.25 refactor makefunc in multiple to properly combine results from single interrupt calls 2020-01-23 22:53:50 -08:00
David Kebler 48b6680585 0.2.24
interrupts:
 better integration with single interrupt methods via common function
 better event bubble up from single interrupt
 allow access to methods via a socket if enabled  (same with single)
 allow consumer reply access to reset method (same with single)
Interrupt:
  improve handling of interval reset with new method
2020-01-06 23:26:37 -08:00
David Kebler 216bd6b98d 0.2.23 Rework interrupts - remove listen methods and automatically send and emit on any one individual interrupt/reset emit
alos bubble up connection events from individual interrupts
Improved/updated examples , remote example can connect to single or mutliple interrupt example
2019-12-23 14:21:12 -08:00
David Kebler 01d2ebd3a1 0.2.22
interrupts class
extends base on interrupts class
change collection of individual interrupts to a Map
method: listenReset, for setting handler for emitted reset of each single interrupt
method: addInterSocket, to add identical consumer socket to each interrupt
interrupt class
add resetEnabled option
switch default edge to 'both'
refactor status method
refactor reset method
No hook by default, registerHook without argument sets the default hook
refactored examples

update deps
2019-11-21 10:06:24 -08:00
David Kebler 378dd51ad1 0.2.18 remove old options processing
add on interval reset option
add reconnect listener for sending a reset on reconnect
clean up logging
2019-04-26 11:15:33 -07:00
David Kebler 691ddf2666 add reset and status of interrupt commands
for interrupts add methods so add socket to each interrupt and also listener common function for 'interrupt' event on all interrupts
2019-04-23 07:48:00 -07:00
David Kebler e22c21823c 0.2.14 refactor to using on/off with epoll, retiring pigipo. Readme now has some explanation on getting hardware prepared 2019-03-14 10:43:25 -07:00
David Kebler be68921eac 0.2.11 fix issue where pin is string, cast to number 2019-03-07 12:54:35 -08:00
David Kebler d656af443e 0.2.10
if opts .port/.path/.topic/.wport are base number/name to which pin number is added/appended (default being 9000,9100,'interrupt')
for specific port number pass itrt.port,itrn.path,itrm.topic,itrw.port which override if others are present
2019-03-06 16:42:14 -08:00
David Kebler 55092303e8 little cleanup - update dependencies 2019-01-01 20:02:16 -08:00
David Kebler e196083d5e add conPacket to each socket using the resetCmd option for the command and included the pin: key so the port can be looked up 2018-08-01 07:22:47 -07:00
David Kebler cc75908894 add single push command for multiple interrupts 2018-07-31 10:05:13 -07:00
David Kebler 12143f58e4 upgrade to esm from @std/esm 2018-05-16 07:12:14 -07:00