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

Multiple pipes in service data

Hi :)

In my program, just ONE pipe to use advertising service data is not enough. There is the function:

lib_aci_open_adv_pipes(const uint8_t * const adv_service_data_pipes);

When i use it in my program, serial monitor says i'm in a while(1) loop. If i replace this function to:

lib_aci_open_adv_pipe(const uint8_t pipe);

It is working.

The problem is, i want to advertise more data than uint_8 (using values between 0-255 is too less)

I thought i can use "lib_aci_open_adv_pipes" to send "more" service data.

Maybe i don't know what "adv_service_data_pipes" do or where i have to initialize that.

My goal is to get GPS data and put this data into "service data". Maybe it's possible to change "lib_aci.h" that i can use something else than uint8_t ?

Can anyone help me please? :)

Parents
  • Thanks for your answer. I know (because my previous threads/questions) that i can use lib_aci_set_local_data to send service data an this works only for values between 0-255, because inside this function the "data" goes to unint8_t *value. How can i send more than 1 byte (because uint8_t is one byte with a value between 0..255) to *value ? Sorry, i don't get it!

    Where in the sketch can i update my data in lib_aci_set_local_data ? When i try this in void loop () the serial monitor gives me a "you're in a while (1) loop" error.

    If i use lib_aci_open_adv_pipe (like: lib_aci_open_adv_pipe(2) ) i open advertise pipe number 2 (that works fine!). But what do i have to use in: lib_aci_open_adv_pipes ? Can you give an example? (Is it like: lib_aci_open_adv_pipes(2,3) or something like that to open pipe 2 and 3?)

    Thanks in advance. I'm still excited of the professional help here *thumbs up *

  • I edited my answer to better answer your question with an example. You do not need to use lib_aci_open_adv_pipes as the lib_aci_open_pipe works just as well for you.

Reply Children
No Data
Related