buildBlePayload

Builds the full BLE payload: opCode, a big-endian 2-byte length, the algorithmCode, actionCode, and protocolCode type codes, then the data bytes.

Return

[opCode][length:2][algorithmCode][actionCode][protocolCode][data].

Parameters

data

the payload body to send.