I'm trying the periodic_adv example on nrf52840 DK, but I'm getting I/O error.
err = bt_le_per_adv_set_param(adv, BT_LE_PER_ADV_DEFAULT); // the function returns the -5 value which is equal to -EIO.
if (err) {
printk("Failed to set periodic advertising parameters"
" (err %d)\n", err);
return;
}