Posted on Apr 25, 2011 by
Quick Wombat
BTSTACK_SET_DISCOVERABLE is not publically defined (ie 'include/btstack') so is not usable by the client.
does not work
bt_send_cmd(&btstack_set_discoverable, BTSTACK_SET_DISCOVERABLE);
works
bt_send_cmd(&btstack_set_discoverable, 7);
Cheers, Simon.
Comment #1
Posted on Apr 25, 2011 by Swift OxBTSTACK_SET_DISCOVERABLE is the internal opcode used by the btstack_set_discoverable cmd. its not needed used by client apps.
btstack_set_discoverable accepts a boolean - anything different from 0 is ON. Most comments are documented in hci_cmds.c - true, that's the wrong place. I shall move the documentation to the public include files.
Status: WontFix
Labels:
Type-Defect
Priority-Medium