Time server. STMicroelectronics BlueNRG-M0, BlueNRG, BlueNRG-MS profiles application interface, BlueNRG-MS
Reklamë
Reklamë
Profiles peripheral roles: APIs interface UM1770
6.15.1 TimeServer_Init()
Description
Initializes the time profile in server role. On successful initialization, the application is notified through the event EVT_TS_INITIALIZED.
Parameters
1.
BLE_CALLBACK_FUNCTION_TYPE – callback function to be called by the profile to notify the application of the events.
2. ServicesToBeSupported – the bit mask of the optional services to be supported. Below are the bitmask values: a) NEXT_DST_CHANGE_SERVICE_BITMASK (0x01) b) REFERENCE_TIME_UPDATE_SERVICE_BITMASK (0x02)
6.15.2 TimeServer_Make_Discoverable()
Description
The command puts the device into discoverable mode. BLE_STATUS_SUCCESS is returned if the command to put the device into discoverable mode was issued successfully.
Parameters
1.
useBoundedDeviceList- this is set to '1' if advertising is to be done to the devices already bonded.
6.15.3 TimeServer_Update_Current_Time_Value()
Description
This is called by the application to update the current time characteristic with the timeValue
On completion of the update, the application is notified through the event
EVT_TS_CHAR_UPDATE_CMPLT .
Parameters
• timeValue – current time structure containing the following structure members.
74/127 DocID026385 Rev 3
Shkarko
Reklamë