2020-08-20 12:43 PM
i want to use a board as master and slave simultaneously. role= GAP_PERIPHERAL_ROLE | GAP_CENTRAL_ROLE;
now, i am able to establish a connection between a Master&Slave board and a slave board. however, when i want to set the Master&Slave board into discoverable mode after that,
an error occurs: error code is 0x0C BLE_ERROR_COMMAND_DISALLOWED .
Why is that? and how to solve this problem?
if i set the device into discoverable mode directly (do not connect it with slave A), the command was successfully.
2020-12-19 08:19 AM
Hi,
Not sure if you resolved this, but I'm seeing something similar...I think.
I am setting up my advertising packet with extended (custom) information. I have seen that if I use more than one advertising data handle when calling aci_gap_set_advertising_enable, I get that error as well (0x0C DISALLOWED). If I only send in one handle, then the enable command doesn't return an error.
However, I have also seen that the slave module will still connect, even with this error returned.
Let me know if you were able to figure this out.
Thanks,
Anthony