7: Configurable PinsWiPort Embedded Wireless Device Server User Guide 78Every command consists of nine bytes: one command type of one byte and twoparameters of four bytes each.Command Parameter 1 Parameter 2Byte 0 1 2 3 4 5 6 7 8Pin Number 0 7 8 15 16 23 24 31 0 7 8 15 16 23 24 31On some commands, one or all parameters are ignored.For UDP, command type and parameters need to be in the same datagram.Responses to valid commands are always five bytes long, consisting of the returnedcommand byte and as parameters in the current or updated values. In case of aninvalid command, only one byte with value 0FFh is returned.Command Parameter 1Byte 0 1 2 3 4Pin Number 0 7 8 15 16 23 24 31When sending a command (TCP and UDP), wait for the response before sending thenext command.CommandsByte 0 Command Types10h Get functions11h Get directions (input or output)12h Get active levels (high active or low active)13h Get current states (active or not active)19h Set directions1Ah Set active levels1Bh Set current statesThere is no Set functions command. Since the pin’s function depends on thehardware in which the WiPort is embedded, that configuration is only allowed via77FE. Settings changed by any of the Set commands are not stored and are lostwhen the unit is powered down or rebooted.Command 10h, Get FunctionsSend:No parametersResponse:1 parameterBytes 1-4: FunctionsBit X 1 means general purpose IO available to the user.0 means dedicated function (e.g., serial flow control, diagnostics) forconfigurable pin X.