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

Updating Advertising and scan response Packet dynamically using ble_advdata_set

I am using SDK 14.01 and ble_app_beacon example in that, I want to send updated sensor data in advertising. Using ble_advdata_set() I am able to send the updated data in advertising based on interval. but due to more data length, I have to used scan response(2nd argument of the function) to send more data. But In that, I am unable to send it.

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
/**
* Copyright (c) 2014 - 2017, Nordic Semiconductor ASA
*
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without modification,
* are permitted provided that the following conditions are met:
*
* 1. Redistributions of source code must retain the above copyright notice, this
* list of conditions and the following disclaimer.
*
* 2. Redistributions in binary form, except as embedded into a Nordic
* Semiconductor ASA integrated circuit in a product or a software update for
* such product, must reproduce the above copyright notice, this list of
* conditions and the following disclaimer in the documentation and/or other
* materials provided with the distribution.
*
* 3. Neither the name of Nordic Semiconductor ASA nor the names of its
* contributors may be used to endorse or promote products derived from this
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

Can anyone please help? I have attached an example file.