I want to advertise a data in ble_app_uart continuously after equal interval of time. Can you please give me some clue. I don't want to use beacon here
I want to advertise a data in ble_app_uart continuously after equal interval of time. Can you please give me some clue. I don't want to use beacon here
Hi,
If you want to advertise continuously in the ble_app uart example then you can set APP_ADV_DURATION to 0. The peripheral will then advertise continuously until a central connects to it. If you wish to continue advertising after a connection then you would have to call advertising_start() in the BLE_GAP_EVT_CONNECTED event in the ble_evt_handler.
Note: You would have to increase the link count in the sdk_config.h file if you wish to connect to more centrals simultaneously.
regards
Jared
I am not able to find APP_ADV_DURATION and there are lot of ble_evt_handler. Where exactly?. I am using SDK 13 by the way.
Hi,
It should be defined at the top of the file. I'm using SDK 16.0 and it looks like this:
See actually I have to receive the data via bluetooth once and start advertising it continuously. Will it work like this? Shall I try this with beacon code or uart code? And in beacon is it possible to change the major and minor values over the air.?
Hi,
The ble_app_uart example would be a good starting point for this. But you need to reconfigure the advertising parameters so that it advertises in non-connectable mode before you restart advertising (if you want it to advertise as a beacon).
Manoj Hiwarkar said:And in beacon is it possible to change the major and minor values over the air.?
No, the beacon example advertises in non-connectable mode. Steps you should implement:
regards
Jared