This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
( | |
while : ; do | |
wvdial congstar | |
sleep 10 | |
done | |
) & |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Payload example on port 100: 01FB3700001F0000 | |
**/ | |
function Decoder(bytes, port) { | |
var decoded = {}; | |
if (port === 100) { | |
decoded.open = bytes[0] & 0x01; | |
decoded.voltage = (25 + (bytes[1] & 0xf)) / 10; |
OlderNewer