You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When a robot joins the server: {URL}/robotJoin {ID} {CHARGE} {MOVEMENT} {EYE COLOR} {EYE EXPRESSION} => "OK", 200
The specific format of the request should be as follows: {URL}/robotJoin?ID={ID}&CHARGE={CHARGE}&MOVE={MOVEMENT}&EC={EYE COLOR}&EE={EYE EXPRESSION}
When a robot leaves the server: /robotLeave {ID} => "OK", 200
When a robots wants to get the new status: /robotUpdate {ID} {CHARGE} => "{MOVEMENT}, {EYE COLOR/EXPRESSION} {opt: SHUTDOWN}", 200
User to Server (GET requests)
When the user wants the robot to adopt a specific movement /userMove {ID} {MOVEMENT} => updated HTML page, 200
When the user wants the robot to adopt a specific expression /userExpress {ID} {EYE COLOR} {opt: EYE EXPRESSION} => updated HTML page, 200
When the user wants the robot to shut down /userShutdown {ID} {SHUTDOWN} => updated HTML page, 200
When the user wants to get an updated version of the page / => updated HTML page, 200
Parameter specific values are all strings, but need to be parsed into their respective formats:
ID - INT32 (positive integer)
CHARGE - FLOAT32 (value from 0 to 100%)
MOVEMENT - STRING (out of a preset list of movements)
EYE COLOR - STRING (out of a preset list of eye colors)
EYE EXPRESSION - STRING (out of a preset list of eye expressions)
SHUTDOWN COMMAND - BOOL (1 for force shutdown, 0 for no shutdown (default))
The text was updated successfully, but these errors were encountered:
On the firmware end, we'll just be reading the HTTP codes for the first two, but for the third we'll read the HTTP code, check if it's 200, and then parse the string above you give us.
Robot to Server (GET requests)
When a robot joins the server:
{URL}/robotJoin {ID} {CHARGE} {MOVEMENT} {EYE COLOR} {EYE EXPRESSION}
=> "OK", 200The specific format of the request should be as follows:
{URL}/robotJoin?ID={ID}&CHARGE={CHARGE}&MOVE={MOVEMENT}&EC={EYE COLOR}&EE={EYE EXPRESSION}
When a robot leaves the server:
/robotLeave {ID}
=> "OK", 200When a robots wants to get the new status:
/robotUpdate {ID} {CHARGE}
=> "{MOVEMENT}, {EYE COLOR/EXPRESSION} {opt: SHUTDOWN}", 200User to Server (GET requests)
When the user wants the robot to adopt a specific movement
/userMove {ID} {MOVEMENT}
=> updated HTML page, 200When the user wants the robot to adopt a specific expression
/userExpress {ID} {EYE COLOR} {opt: EYE EXPRESSION}
=> updated HTML page, 200When the user wants the robot to shut down
/userShutdown {ID} {SHUTDOWN}
=> updated HTML page, 200When the user wants to get an updated version of the page
/
=> updated HTML page, 200Parameter specific values are all strings, but need to be parsed into their respective formats:
The text was updated successfully, but these errors were encountered: