V2.0
This commit is contained in:
@@ -223,9 +223,6 @@ void peripheral_ancs_client_init(void)
|
||||
GAPRole_SetParameter(GAPROLE_MAX_CONN_INTERVAL, sizeof(uint16_t), &desired_max_interval);
|
||||
}
|
||||
|
||||
// Set the GAP Characteristics
|
||||
GGS_SetParameter(GGS_DEVICE_NAME_ATT, sizeof(attDeviceName), attDeviceName);
|
||||
|
||||
{
|
||||
uint16_t advInt = DEFAULT_ADVERTISING_INTERVAL;
|
||||
|
||||
@@ -261,6 +258,9 @@ void peripheral_ancs_client_init(void)
|
||||
GATTServApp_AddService(GATT_ALL_SERVICES); // GATT attributes
|
||||
DevInfo_AddService();
|
||||
|
||||
// Set the GAP Characteristics
|
||||
GGS_SetParameter(GGS_DEVICE_NAME_ATT, sizeof(attDeviceName), attDeviceName);
|
||||
|
||||
// Setup a delayed profile startup
|
||||
tmos_set_event(ancs_taskid, START_DEVICE_EVT);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user