Skip to content

Commit 03c96e2

Browse files
committed
rename REQUESTQUEUE to RQ
1 parent c0495e0 commit 03c96e2

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

gateway.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -618,7 +618,7 @@ io.sockets.on('connection', function (socket) {
618618
if (!isNew) //VOID previous request value before queuing adding latest value
619619
requestString += nodeId + ':VOID:' + reqName + (reqValue?':'+reqValue.trim():'') + '\n';
620620

621-
requestString += 'REQUESTQUEUE:' + nodeId + ':' + reqName + (reqValue?':'+reqValue.trim():'') + '\n';
621+
requestString += 'RQ:' + nodeId + ':' + reqName + (reqValue?':'+reqValue.trim():'') + '\n';
622622
sendMessageToGateway(requestString);
623623
console.info('REQUEST SENT: ' + requestString.replaceNewlines());
624624
db.update({ _id: dbNode._id }, { $set : dbNode}, {}, function (err, numReplaced) { console.info('SUBMITNODEREQUEST DB-Replaced:' + numReplaced); });
@@ -1025,7 +1025,7 @@ global.processSerialData = function (data, simulated) {
10251025
partialMatch = true;
10261026
}
10271027

1028-
if (tokenMatch[1] == 'REQUESTQUEUE' || tokenMatch[1] == 'FREERAM' || tokenMatch[1] == 'GTWCMD' || tokenMatch[1] == 'ACK')
1028+
if (tokenMatch[1] == 'RQ' || tokenMatch[1] == 'FREERAM' || tokenMatch[1] == 'GTWCMD' || tokenMatch[1] == 'ACK')
10291029
{
10301030
validTokenMatched=true;
10311031
partialMatch = true;
@@ -1266,4 +1266,4 @@ setInterval(function(){
12661266
io.sockets.emit('UPDATENODE', entries[i]); //push updated node to clients
12671267
}
12681268
});
1269-
}, 10000);
1269+
}, 10000);

0 commit comments

Comments
 (0)