nRF51 SDK
|
Frame format encoding of the sd_ble_gap_appearance_get packet.
Operation Code = 0x69 (105) for sd_ble_gap_appearance_get, see BLE_GAP_SVCS.
The parameter provided as input to sd_ble_gap_appearance_get is encoded in the following order:
- 1 byte: | Operation Code, Value = 0x69 (105) | |
- 1 byte: | Appearance present | |
0x00 Field not present | ||
0x01 Field present |
Frame format encoding of the sd_ble_gap_appearance_get response packet.
In case of an error, the following data is encoded:
- 1 byte: | Operation Code, Value = 0x69 (105) | |
- 4 byte: | nRF Error Code |
In case of a successful command, i.e. 'nRF Error Code' = NRF_SUCCESS
, the following data is encoded:
- 1 byte: | Operation Code, Value = 0x69 (105) | |
- 4 bytes: | Return Code | |
- 2 bytes: | Bluetooth Appearance values | Appearance |