This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

Broadcaster mode

Hello,

I want to use broadcaster mode for nrf51822, could you tell me please what I must to do to use this mode?

I suppose I must to set BLE_GAP_ADV_TYPE_ADV_NONCONN_IND mode, configure 'interval'(as I read in specification it must be greater than 100ms), to set only 'BLE_GAP_ADV_FLAG_BR_EDR_NOT_SUPPORTED' flag, setup advertise data and call sd_ble_gap_adv_start(). Is it true?

And may be you have any demo project?

Best Regards, Artem Zemlyanukhin

Parents
  • Hi Morten,

    In the sample code you have attached, BLE_UUID_HEALTH_THERMOMETER_SERVICE is used for broadcasting the temperature data. So is the broadcasting functionality tied to a service ?

    Suppose I want to broadcast the value of ambient light. Do I have to create a custom service for light and use that UUID for broadcast ?

    But in the sample code you have provided , I couldnt find any calls to the functions provided by the health thermometer service for initializing the service. Please advise how this works .

    Thanks Shafy

  • Actually, it is per the Bluetooth spec not legal to advertise so called service data with a custom UUID, so creating a custom service and advertise like that wouldn't work.

    I have however extended my answer above a little, so that you can see how you can use the manufacturer specific data field.

Reply Children
No Data
Related