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

Do i need to make a service to work with a few received bytes from an advertising packet?

Hi all.

Just wondering if i need to go through the tutorials on making a service if i just want to read a few bytes in an advertising beacon.

I'm a little lost on figuring out what function i need to use or what library looks for a particular device and then getting that devices advertising manufacturer data into memory to work with.

I'd just like to have two devices constantly advertising and constantly scanning and then updating a central with the connection details. similar to a beacon but they may need to connect and transfer data in the future.

Parents Reply Children
  • great thanks,

    My thought process is to modify the ble uart example to allow constant advertising and constant scanning, waiting for a specific device within rssi value then establish connection, transfer data, ,maybe set a flag to connect the other device right after, disconnect and have the other device scan this advertising data, connect, send data, and disconnect. all while still keeping the phone uart connection alive?

    Right now im having trouble writing out data to the ble uart phone, using ble_nus_string_send().

    It requires an array to send a string in using the variable type uint8_t * ?

    I dont have a lot of experience with uint8_t * types and the infromation im getting seems to be that this is a pointer variable?

    How would I send a text string of characters through this function? sorry, im a little lost

Related