added btstack_set_discoverable command

This commit is contained in:
matthias.ringwald 2011-01-10 20:29:29 +00:00
parent 98199a5690
commit bc2af4fc4b
2 changed files with 9 additions and 2 deletions

View File

@ -206,7 +206,8 @@ extern const hci_cmd_t btstack_set_acl_capture_mode;
extern const hci_cmd_t btstack_get_version;
extern const hci_cmd_t btstack_get_system_bluetooth_enabled;
extern const hci_cmd_t btstack_set_system_bluetooth_enabled;
extern const hci_cmd_t btstack_set_discoverable;
extern const hci_cmd_t hci_accept_connection_request;
extern const hci_cmd_t hci_authentication_requested;
extern const hci_cmd_t hci_create_connection;
@ -258,7 +259,7 @@ extern const hci_cmd_t rfcomm_create_channel;
extern const hci_cmd_t rfcomm_decline_connection;
extern const hci_cmd_t rfcomm_disconnect;
extern const hci_cmd_t rfcomm_register_service;
extern const hci_cmd_t rfcomm_unregister_service;
extern const hci_cmd_t rfcomm_unregister_service;
#if defined __cplusplus
}

View File

@ -342,6 +342,12 @@ const hci_cmd_t btstack_set_system_bluetooth_enabled = {
OPCODE(OGF_BTSTACK, BTSTACK_SET_SYSTEM_BLUETOOTH_ENABLED), "1"
};
const hci_cmd_t btstack_set_discoverable = {
OPCODE(OGF_BTSTACK, BTSTACK_SET_DISCOVERABLE), "1"
};
const hci_cmd_t l2cap_create_channel = {
OPCODE(OGF_BTSTACK, L2CAP_CREATE_CHANNEL), "B2"
// @param bd_addr(48), psm (16)