Coordinator v2
Dependencies: NerfUSXbee PinDetect EthernetInterface JSON MFRC522 WebSocketClient mbed-rtos mbed
includes/ServerData.hpp@2:019d8848cf7e, 2017-04-11 (annotated)
- Committer:
- Ismael Balafrej
- Date:
- Tue Apr 11 12:40:05 2017 -0400
- Revision:
- 2:019d8848cf7e
- Parent:
- 1:e1c5259b7d9a
Final version without allies/enemies
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
Ismael Balafrej |
1:e1c5259b7d9a | 1 | #pragma once |
Ismael Balafrej |
1:e1c5259b7d9a | 2 | |
Ismael Balafrej |
1:e1c5259b7d9a | 3 | //TODO: Separate ? |
Ismael Balafrej |
1:e1c5259b7d9a | 4 | struct ServerData |
Ismael Balafrej |
1:e1c5259b7d9a | 5 | { |
Ismael Balafrej |
1:e1c5259b7d9a | 6 | //To server |
Ismael Balafrej |
1:e1c5259b7d9a | 7 | uint8_t targets = 0; |
Ismael Balafrej |
1:e1c5259b7d9a | 8 | uint16_t averageReflexTime = 0; |
Ismael Balafrej |
1:e1c5259b7d9a | 9 | uint16_t gameLength = 0; |
Ismael Balafrej |
2:019d8848cf7e | 10 | int16_t score = 0; |
Ismael Balafrej |
2:019d8848cf7e | 11 | char rfid_code[15] = {'\0'}; |
Ismael Balafrej |
1:e1c5259b7d9a | 12 | char direction[10] = {'\0'}; |
Ismael Balafrej |
1:e1c5259b7d9a | 13 | |
Ismael Balafrej |
1:e1c5259b7d9a | 14 | //From server |
Ismael Balafrej |
1:e1c5259b7d9a | 15 | uint8_t game_id = 0; |
Ismael Balafrej |
1:e1c5259b7d9a | 16 | uint16_t max_reflex_time = 10000; |
Ismael Balafrej |
1:e1c5259b7d9a | 17 | uint8_t number_of_target = 100; |
Ismael Balafrej |
1:e1c5259b7d9a | 18 | |
Ismael Balafrej |
1:e1c5259b7d9a | 19 | }; |
Ismael Balafrej |
1:e1c5259b7d9a | 20 | struct ServerEvent |
Ismael Balafrej |
1:e1c5259b7d9a | 21 | { |
Ismael Balafrej |
1:e1c5259b7d9a | 22 | char event[32] = {'\0'}; |
Ismael Balafrej |
1:e1c5259b7d9a | 23 | ServerData data; |
Ismael Balafrej |
1:e1c5259b7d9a | 24 | }; |