Created
April 21, 2021 16:36
-
-
Save bgklika/e4b922b252824f0ac67d0277291e4ce3 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/src/amazon-freertos/libraries/c_sdk/standard/ble/include/iot_ble.h b/src/amazon-freertos/libraries/c_sdk/standard/ble/include/iot_ble.h | |
index 674d7015c..3fc2e7d7c 100644 | |
--- a/src/amazon-freertos/libraries/c_sdk/standard/ble/include/iot_ble.h | |
+++ b/src/amazon-freertos/libraries/c_sdk/standard/ble/include/iot_ble.h | |
@@ -660,4 +660,6 @@ BTStatus_t IotBle_SetDeviceName( const char * pName, | |
size_t length ); | |
/* @[declare_iotble_setdevicename] */ | |
+BTStatus_t IotBle_SetStopAdvCallback( IotBle_StopAdvCallback_t pStopAdvCb ); | |
+ | |
#endif /* _AWS_BLE_H_*/ | |
diff --git a/src/amazon-freertos/libraries/c_sdk/standard/ble/src/iot_ble_gap.c b/src/amazon-freertos/libraries/c_sdk/standard/ble/src/iot_ble_gap.c | |
index d18e71e69..756507bed 100644 | |
--- a/src/amazon-freertos/libraries/c_sdk/standard/ble/src/iot_ble_gap.c | |
+++ b/src/amazon-freertos/libraries/c_sdk/standard/ble/src/iot_ble_gap.c | |
@@ -512,6 +512,14 @@ BTStatus_t IotBle_StopAdv( IotBle_StopAdvCallback_t pStopAdvCb ) | |
/*-----------------------------------------------------------*/ | |
+BTStatus_t IotBle_SetStopAdvCallback( IotBle_StopAdvCallback_t pStopAdvCb ) | |
+{ | |
+ _BTInterface.pStopAdvCb = pStopAdvCb; | |
+ return eBTStatusSuccess; | |
+} | |
+ | |
+/*-----------------------------------------------------------*/ | |
+ | |
BTStatus_t IotBle_ConnParameterUpdateRequest( const BTBdaddr_t * pBdAddr, | |
IotBleConnectionParam_t * pConnectionParam ) | |
{ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment