Description

The DeviceNameGet command is used to retrieve Neblina's device name. The device name used by default is the Bluetooth GAP Device Name and can be changed dynamically using the DeviceNameSet command.

Protocol

This command uses the Command-Ack-Response protocol.

Command

Byte Name C Type Value
0 Control Byte ( Packet Type (7:5) / SubSystem (4:0) ) uint8_t 0x40 ( 0b010 / 0b00000 )
1 Payload Length uint8_t 0
2 CRC uint8_t Calculated
3 Command uint8_t 0x0F

Payload

This command contains no payload

Response

This response packet uses a dynamic payload based on the device name length. The device name is ASCII-based and without NULL terminator ('\0'). Its length is associated with the payload length element of the response packet header, where X is Payload Length.

Header

Byte Name C Type Value
0 Control Byte ( Packet Type (7:5) / SubSystem (4:0) ) uint8_t 0x00 ( 0b000 / 0b00000 )
1 Payload Length uint8_t X
2 CRC uint8_t Calculated
3 Command uint8_t 0x0F

Payload

Byte Name C Type Value
4 Device name uint8_t Varies
... ... ... ...
4 + (X - 1) Device name uint8_t Varies