From 92eb94b0c5efe1d820ecab4d9c76642df74575f2 Mon Sep 17 00:00:00 2001 From: Flavien Haas Date: Sun, 27 May 2018 01:37:37 +0200 Subject: [PATCH] added serial communication --- gateway/gateway.ino | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/gateway/gateway.ino b/gateway/gateway.ino index c769a47..5bdc21a 100644 --- a/gateway/gateway.ino +++ b/gateway/gateway.ino @@ -150,12 +150,18 @@ bool readFrameAndCheckTS(){ } else{ SerialUSB.println("New Frame :"); - SerialUSB.println(protocol.getStationId(),HEX); + SerialUSB.print("ID = "); + SerialUSB.print(protocol.getStationId(),HEX); SerialUSB.println(protocol.getGatewayId(),HEX); + SerialUSB.print("TS = "); SerialUSB.println(protocol.getTimestampMessage(),HEX); + SerialUSB.print("DT = "); SerialUSB.println(protocol.getDataType(),HEX); + SerialUSB.print("D1 = "); SerialUSB.println(protocol.getDataOne(),HEX); + SerialUSB.print("D2 = "); SerialUSB.println(protocol.getDataTwo(),HEX); + SerialUSB.print("D3 = "); SerialUSB.println(protocol.getDataThree(),HEX); return true; }