Commit Graph

32 Commits (216bd6b98d216a9179baae1677d5e4d1499a2736)

Author SHA1 Message Date
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 dbd8ef3347 0.2.19 update base dep which has better socket error handling 2019-04-28 10:35:06 -07: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 8f22017fd1 0.2.17 enble reset on reconnect. change resetTimeout to resetInterval for timed reset enable 2019-04-23 07:48:00 -07:00
David Kebler f132b1d271 0.2.16 2019-04-23 07:48:00 -07:00
David Kebler e210c404e0 0.2.15 update of uci-socket
switched from here to using consumer to send instead of socket push to mcp process
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 2516bea92a 0.2.13 2019-03-11 09:31:21 -07:00
David Kebler c0964d1f1d 0.2.12 refactored hook registration 2019-03-08 09:05:32 -08: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 d0d8af7f28 0.2.9 dependency changes 2019-02-15 08:50:28 -08:00
David Kebler 3f49a3f8b5 0.2.2 2019-01-25 20:34:19 -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 03c3ac8747 add client example for interrupt sockect server example. Bump version. 2018-07-01 16:02:30 -07:00
David Kebler 12143f58e4 upgrade to esm from @std/esm 2018-05-16 07:12:14 -07:00
David Kebler 002ad9edbb added interrupts class as multiple extension of Interrupt
Added single and multiple example
2018-03-04 15:10:34 -08:00
David Kebler 709fd35adf add hook 2018-03-02 08:32:37 -08:00
David Kebler 6680fd3ad9 working rpi gpio interrupt with packet socket 2018-02-23 21:32:13 -08:00
David Kebler 8303cc3cc8 bit of cleanup and documentation 2017-05-29 22:12:32 -07:00
David Kebler e85378168e total refactoring using pigpio library instead of epoll 2017-05-20 22:21:07 -07:00
David Kebler e13f232a0f update packages to registry from git 2017-05-15 12:42:48 -07:00
David Kebler ff72b670ab minor changes 2017-01-22 17:37:40 -08:00
David Kebler 87fdcd0df8 interrupt working with debounce 2017-01-21 23:48:42 -08:00
David Kebler 2e05b40eda adjusting packages 2017-01-21 23:48:42 -08:00
David Kebler 8bede72304 refactoring for new interrupt class 2017-01-21 16:13:53 -08:00
David Kebler 66034b09cb add try catch to init 2017-01-21 16:13:53 -08:00
David Kebler ee7af6730e adding interrupt class for gpio pins on RPi and the like 2017-01-18 22:35:55 -08:00
David Kebler 6366815b03 initial commit 2017-01-11 15:56:25 -08:00