Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: NerfUSXbee PinDetect EthernetInterface JSON MFRC522 WebSocketClient mbed-rtos mbed
Diff: includes/ServerData.hpp
- Revision:
- 1:e1c5259b7d9a
- Child:
- 2:019d8848cf7e
diff -r 000000000000 -r e1c5259b7d9a includes/ServerData.hpp
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/includes/ServerData.hpp Mon Apr 10 15:02:24 2017 -0400
@@ -0,0 +1,26 @@
+#pragma once
+
+//TODO: Separate ?
+struct ServerData
+{
+ //To server
+ uint8_t targets = 0;
+ uint8_t enemies = 0;
+ uint8_t allies = 0;
+ uint16_t averageReflexTime = 0;
+ uint16_t gameLength = 0;
+ uint16_t score = 0;
+ char rfid_code[32] = {'\0'};
+ char direction[10] = {'\0'};
+
+ //From server
+ uint8_t game_id = 0;
+ uint16_t max_reflex_time = 10000;
+ uint8_t number_of_target = 100;
+
+};
+struct ServerEvent
+{
+ char event[32] = {'\0'};
+ ServerData data;
+};
\ No newline at end of file