Question
BlueNRG – Send/Receive Data.
Posted on October 05, 2015 at 11:21
My device is configured as a SERVER in an advertising mode.
ret = aci_gap_set_discoverable(ADV_NONCONN_IND, 160, 160, PUBLIC_ADDR, NO_WHITE_LIST_USE, sizeof(local_name), local_name, 0, NULL, 0, 0);
It sends an advertising beacon with a user data.
if (bluenrg_tx_count > period)
{
bluenrg_tx_count = 0;
ret = aci_gap_update_adv_data(sizeof(manuf_data), manuf_data);
}
The other side - CLIENT reads the data.
What if I want to get some data on the SERVER side? Can I do it in the same pattern by getting the advertising data from the CLIEN or should I implement services and characteristics in it?