The bang protocol is a compact message format that is easy for embedded systems to parse. Bang protocol messages begin with an exclamation mark (`
!‘) and end with a carriage return (‘
\r‘) and, optionally, a new-line (‘
\n‘). Between these delimiters, the message begins with a command and optionally includes one or more parameters. Parameters are separated by spaces (‘
Messages can have no parameters:
!StartMotor\r\n, or several parameters:
!SetConfig 12 45 10\r\n.