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

Send custom data when advertising and don't allow connections

I want to make a small sensor that will wake up every once in a while, turn on advertising for a second or two and then go back to sleep again.

I'm trying to figure out which example should I take a look at if I want my device to be discoverable but does not accept connections and also
how can I put a custom data (sensor ID and value it's reading) into advertising packet so it can be picked up by nRF connect mobile app.

Can someone please point me to examples I can take a peek at or maybe point me to a manual/doc that explains how to do this?

Right now I have Nordic UART example up and running and I'm trying to modify it to work like described above.