Hello everyone,
I have a problem with the direction_finding_connectionless_tx example. I´m working with VS Code and nRF Connect SDK 2.3.0 is installed.
The unmodified example runs just fine but now I want to implement it together with a sensor that gives out some values over SPI and then I want to send these values in the advertising data.
So I use this function to set the advertising data:
printk("set Advertising Data..."); err = bt_le_ext_adv_set_data(adv_set, &adv_manuf_data, 1, NULL, 0); if (err) { printk("failed (err %d)\n", err); return; } printk("success\n");
With this advertising data:
static const uint8_t adv_data[] = { 'T', 'e', 's', 't', 'D', 'a', 't', 'a' }; static struct bt_data adv_manuf_data = { .type = BT_DATA_MANUFACTURER_DATA, .data_len = sizeof(adv_data), .data = adv_data, };
But I get err -5 from the function.
Do I need another function to set advertising data? My understanding is that in the function sets data in the extended avertising channel.
Thanks in advance
J-R