added serial communication

jd-update
Flavien Haas 7 years ago
parent 03984040c0
commit 92eb94b0c5

@ -150,12 +150,18 @@ bool readFrameAndCheckTS(){
} }
else{ else{
SerialUSB.println("New Frame :"); SerialUSB.println("New Frame :");
SerialUSB.println(protocol.getStationId(),HEX); SerialUSB.print("ID = ");
SerialUSB.print(protocol.getStationId(),HEX);
SerialUSB.println(protocol.getGatewayId(),HEX); SerialUSB.println(protocol.getGatewayId(),HEX);
SerialUSB.print("TS = ");
SerialUSB.println(protocol.getTimestampMessage(),HEX); SerialUSB.println(protocol.getTimestampMessage(),HEX);
SerialUSB.print("DT = ");
SerialUSB.println(protocol.getDataType(),HEX); SerialUSB.println(protocol.getDataType(),HEX);
SerialUSB.print("D1 = ");
SerialUSB.println(protocol.getDataOne(),HEX); SerialUSB.println(protocol.getDataOne(),HEX);
SerialUSB.print("D2 = ");
SerialUSB.println(protocol.getDataTwo(),HEX); SerialUSB.println(protocol.getDataTwo(),HEX);
SerialUSB.print("D3 = ");
SerialUSB.println(protocol.getDataThree(),HEX); SerialUSB.println(protocol.getDataThree(),HEX);
return true; return true;
} }

Loading…
Cancel
Save