The PiShock Serial API allows you to communicate with the PiShock device using serial communication. This documentation provides an overview of the available commands, their parameters, and the expected responses.
The PiShock Serial API uses a json. Each command is sent as a json string formated as following.
Command: command1 [parameter1] [parameter2]
Description: This command does something.
Parameters:
parameter1
(type: data type) - Description of the parameter.parameter2
(type: data type) - Description of the parameter.Response: The response message indicating the status of the command execution.
Command: command2 [parameter1]
Description: This command does something else.
Parameters:
parameter1
(type: data type) - Description of the parameter.Response: The response message indicating the status of the command execution.