Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save bgklika/e4b922b252824f0ac67d0277291e4ce3 to your computer and use it in GitHub Desktop.
Save bgklika/e4b922b252824f0ac67d0277291e4ce3 to your computer and use it in GitHub Desktop.
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