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.
All requests and responses are 7 bytes.
Format: puzzle_code command
puzzle_code
- The puzzle of the request
MRS
: Morse code puzzleBKS
: Books puzzleTIM
: Time machine puzzleGRS
: Gears puzzle
command
- The command to run
DNE
: Mark puzzle as doneRST
: Reset puzzle to incompleteGET
: Get status of puzzle
Example requests:
MRS DNE
: Mark the morse code puzzle as doneBKS GET
: Get the status of the books puzzle
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.