diff --git a/allhands_fact_max.js b/allhands_fact_max.js index 67663d1..c101f5c 100644 --- a/allhands_fact_max.js +++ b/allhands_fact_max.js @@ -8,6 +8,7 @@ // const argv = yargs(hideBin(process.argv)).argv const Max = require('max-api') +const sortArray = require('sort-array') // UDP send/receive let localsend = null; let localreceive = null; @@ -248,7 +249,7 @@ if (mode === "server"){ localSend.send('/iplocation', newTTS, (err) => { if (err) console.error(err); }); - // Max.post(newTTS) + Max.outlet('/iplocation', newTTS) } @@ -268,7 +269,7 @@ if (mode === "server"){ localSend.send(msg.addressPattern, msg.typeTagString, (err) => { if (err) console.error(err); }); - // Max.outlet(msg.addressPattern, msg.typeTagString) + Max.outlet(msg.addressPattern, msg.typeTagString) } @@ -287,8 +288,23 @@ if (mode === "server"){ case 'pingReport': // console.log(msg.data) let remotes = Object.keys(msg.data) + let pingDict = [] + Max.outlet('pings', msg.data) + let delayTap = '' + let counter = 60 for(i=0;i