mirror of
https://github.com/espressif/esp-nimble.git
synced 2026-08-05 17:47:53 +00:00
Added device appearance setter and getter to GAP service.
X-Original-Commit: e4221d89612eda349dad1e6ba7a8e9390d841dc9
This commit is contained in:
@@ -37,8 +37,8 @@ struct ble_hs_cfg;
|
||||
|
||||
const char *ble_svc_gap_device_name(void);
|
||||
int ble_svc_gap_device_name_set(const char *name);
|
||||
|
||||
void ble_svc_gap_init(void);
|
||||
int ble_svc_gap_device_appearance(void);
|
||||
int ble_svc_gap_device_appearance_set(const uint16_t appearance);
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
|
||||
@@ -150,6 +150,20 @@ ble_svc_gap_device_name_set(const char *name)
|
||||
return 0;
|
||||
}
|
||||
|
||||
int
|
||||
ble_svc_gap_device_appearance(void)
|
||||
{
|
||||
return ble_svc_gap_appearance;
|
||||
}
|
||||
|
||||
int
|
||||
ble_svc_gap_device_appearance_set(const uint16_t appearance)
|
||||
{
|
||||
ble_svc_gap_appearance = appearance;
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
void
|
||||
ble_svc_gap_init(void)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user