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

How to modify custom advertisement data

I can see in nRFgo Studio that I can set a custom advertisement type/value to be included in the advertising packet. I would like to modify this data at runtime. I see plenty of posts that reference opening advertising pipes and setting local data. However, it's not clear to me that this custom data has a pipe assigned to it? How do I go about modifying this portion of the advertisement data?

If that is not possible, here is my goal. I need to transmit some data to a mobile application before a connection is made. The data is small, probably will just be a byte. It is variable, but would change on the order of a minute or so. Ideally it would go in either the advertisement data or the scan response packet, not too picky there, because I know the mobile app can retrieve this without problem. If there's a better way to accomplish this, let me know!

I've done this before with SDK's from other vendors where there's a simple call to replace the entire advertisement packet, but I'm not seeing one here.

Related