Added BLE_StopAdvertising().
This commit is contained in:
parent
cb72042691
commit
6382526391
4 changed files with 15 additions and 3 deletions
|
@ -25,5 +25,6 @@
|
|||
SystemKResult_T BLE_GetMyAddress(uint8_t * BD_ADDR);
|
||||
SystemKResult_T BLE_ScanAndAdvertise(void);
|
||||
SystemKResult_T BLE_SetAdvertisingData(BLE_AdvertisingData_T * data);
|
||||
SystemKResult_T BLE_StopAdvertising(void);
|
||||
|
||||
#endif // BLE_HW_INTERFACE_H
|
||||
|
|
|
@ -304,6 +304,11 @@ void BLE_RespondToConfigurationPacket(const BLE_ParametersPacket_T *const packet
|
|||
{
|
||||
KLOG_ERROR(KLOG_TAG, "Error responding to configuration packet!");
|
||||
}
|
||||
|
||||
if (BLE_ScanAndAdvertise() != SYSTEMK_RESULT_SUCCESS)
|
||||
{
|
||||
KLOG_ERROR(KLOG_TAG, "Couldn't scan and advertise!");
|
||||
}
|
||||
}
|
||||
|
||||
void BLE_UpdateHelloPacket()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue