nRF51 SDK
 All Data Structures Functions Variables Typedefs Enumerations Enumerator Groups Pages
0x68 - sd_ble_gap_appearance_set

Function packet format

Frame format encoding of the sd_ble_gap_appearance_set packet.

Operation Code = 0x68 (104) for sd_ble_gap_appearance_set, see BLE_GAP_SVCS.

The parameter provided as input to sd_ble_gap_appearance_set is encoded in the following order:

- 1 byte: Operation Code, Value = 0x68 (104)
- 2 bytes:Bluetooth Appearance values Appearance


appearance_set_packet.png
Figure 1: Packet format for sd_ble_gap_appearance_set function.

Response packet format

Frame format encoding of the sd_ble_gap_appearance_set response packet.

In case of an error, the following data is encoded:

- 1 byte:Operation Code, Value = 0x68 (104)
- 4 byte:nRF Error Code


default_error_response_packet.png
Figure 2: Packet format for sd_ble_gap_appearance_set error response.

In case of a successful command, i.e. 'nRF Error Code' = NRF_SUCCESS, the following data is encoded:

- 1 byte: Operation Code, Value = 0x68 (104)
- 4 bytes:nRF Error Code


default_success_response_packet.png
Figure 3: Packet format for sd_ble_gap_appearance_set success response.