BleAction
A NetworkAction framed as a Bluetooth Low Energy payload.
Where a WebSocket action builds a URL, a BLE action builds a byte payload: the connection is assumed to be already established, so each step only needs an opcode, a set of type codes, and its data laid out in a fixed order.
This is transport scaffolding for a future BLE channel. No shipping protocol routes through it today — WebSocket (com.silencelaboratories.silentshard.network.websocket.WebsocketAction) is the active transport — so treat the wire format below as provisional.
Payload layout produced by buildBlePayload:
[opCode:1][length:2 big-endian][algorithmCode:1][actionCode:1][protocolCode:1][data:N]Properties
Functions
Builds the type-code header without the length prefix or data.
Builds the full BLE payload: opCode, a big-endian 2-byte length, the algorithmCode, actionCode, and protocolCode type codes, then the data bytes.