added frame structure

This commit is contained in:
flavienhaas 2018-04-24 14:52:49 +02:00
parent 57e2e000d7
commit 69454e9f78

View File

@ -16,6 +16,17 @@ byte mac[] = {0xDE, 0xAD, 0xBE, 0xEF, 0xFE, 0xED}; // set the mac addre
EthernetServer server(80); // initialize the EthernetServer library, using port 80 (default fot HTTP)
struct message { // frame structure
uint16_t ID; // ID
uint16_t TS; // TimeStamp
uint16_t DT; // Data Type
uint16_t D1; // DATA 1
uint16_t D2; // DATA 2
uint16_t D3; // DATA 3
};
void setup(){
Serial.begin(9600);
while (!Serial); // wait for serial to initialize