Skip to content

Commit 3c1820c

Browse files
committed
NodeJsController adjust to ack in serial message protocol
1 parent a3a401c commit 3c1820c

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

NodeJsController/NodeJsController.js

+3-2
Original file line numberDiff line numberDiff line change
@@ -524,8 +524,9 @@ function rfReceived(data, db, gw) {
524524
var sender = +datas[0];
525525
var sensor = +datas[1];
526526
var command = +datas[2];
527-
var type = +datas[3];
528-
var rawpayload = datas[4].trim();
527+
var ack = +datas[3];
528+
var type = +datas[4];
529+
var rawpayload = datas[5].trim();
529530
var payload;
530531
if (command == C_STREAM) {
531532
payload = [];

0 commit comments

Comments
 (0)