This file contains hidden or 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
| // a very simple mDot LoRaWAN connection manager | |
| var tx_wdog = {intv: 60000, counter:0, flag: false, sendingFlag: null, ts:null, tid:null}; | |
| var con = {state:0, statePrevious: 0, cmd: null, msg: null, status: null, rx_msg: null, sendInt: 60000}; | |
| var tx_string = ''; | |
| var rx_string = ''; | |
| var log = true; | |
| function cLog(logMsg){ | |
| var d = new Date(); |
This file contains hidden or 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
| // tsio App proerties Advanced/External JavaScript Libraries Add | |
| // http://code.highcharts.com/highcharts.js | |
| // JSON payload for real time | |
| // sending a len = 1 adds single point to chart series | |
| // v always an array | |
| { "lng": 1, "sn": "ENO-Temp-Test", "v": [ 1456330983567, 17.7 ] } | |
| // creates a new sereries as lng >1 | |
| { "lng": 10, "sn": "ENO-Temp-Test", "v": [ { "value": 19, "jts": 1456057196556}, { "value": 19.1, "jts": 1456058242342}..]} | |
| // lng calc coudl be done client side |
OlderNewer