-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
52d89d0
commit c00d4ae
Showing
2 changed files
with
38 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
# ESP8266 Escape Room Wifi | ||
The server and client code for Gizmologists escape room. | ||
|
||
Code in `escape-room-server.py` will be run on a Raspberry Pi to be communicated with ESP8266-01 chips. Code in the Arduino libraries runs on Arduinos to communicate with it. | ||
|
||
## Protocol | ||
All requests and responses are 7 bytes. | ||
|
||
### Requests | ||
Format: `puzzle_code command` | ||
|
||
`puzzle_code` - The puzzle of the request | ||
- `MRS`: Morse code puzzle | ||
- `BKS`: Books puzzle | ||
- `TIM`: Time machine puzzle | ||
- `GRS`: Gears puzzle | ||
|
||
`command` - The command to run | ||
- `DNE`: Mark puzzle as done | ||
- `RST`: Reset puzzle to incomplete | ||
- `GET`: Get status of puzzle | ||
|
||
Example requests: | ||
- `MRS DNE`: Mark the morse code puzzle as done | ||
- `BKS GET`: Get the status of the books puzzle | ||
|
||
### Responses | ||
|
||
Format: `puzzle_code status` | ||
|
||
`puzzle_code` - The puzzle of the request (same codes as request) | ||
|
||
`status` - Status of the puzzle AFTER the request is processed (same codes as request) | ||
|
||
Response will be `INVALID` if command was invalid in any way. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters