This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts
This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Reinitialize BLE Stack

Hi everybody

I try to reinitialize the Advertising with new parameters after a finished advertising. For example use directed mode, change advertising data and so on. But all I get for the second advertisement is a BLE_GAP_EVT_TIMEOUT with the following source BLE_GAP_TIMEOUT_SRC_ADVERTISING.

I use the Nordic Advertising Module.

Is there any possibility to tear down the whole BLE stack somehow and reinitialize it? My initialization looks like that so far:

InitPeerManager(eraseBonds);
InitGap(deviceName);
InitServices();
InitAdvertising(deviceName, directMode);
StartAdvertisment();

Any help would be highly appreciated.

Parents
  • Hi Fabi,

    Could you tell exactly what was the advertising module you used ? Was it ble_advertising.c or something else ?

    When you receive BLE_GAP_EVT_TIMEOUT with BLE_GAP_TIMEOUT_SRC_ADVERTISING source, why couldn't you start advertising again ? Which error have you got ?

Reply
  • Hi Fabi,

    Could you tell exactly what was the advertising module you used ? Was it ble_advertising.c or something else ?

    When you receive BLE_GAP_EVT_TIMEOUT with BLE_GAP_TIMEOUT_SRC_ADVERTISING source, why couldn't you start advertising again ? Which error have you got ?

Children
No Data
Related