TizenRT Public API  v2.0 M2
bluetooth_extension.h File Reference
Include dependency graph for bluetooth_extension.h:

Go to the source code of this file.

Functions

int bt_ag_open_sco (void)
 Opens a SCO(Synchronous Connection Oriented link) to connected remote device, asynchronously. 2.3 platform http://tizen.org/privilege/bluetooth.admin. More...
 
int bt_ag_close_sco (void)
 Closes an opened SCO(Synchronous Connection Oriented link), asynchronously. 2.3 platform http://tizen.org/privilege/bluetooth.admin. More...
 

Function Documentation

int bt_ag_close_sco ( void  )

Closes an opened SCO(Synchronous Connection Oriented link), asynchronously. 2.3 platform http://tizen.org/privilege/bluetooth.admin.

Returns
0 on success, otherwise a negative error value.
Return values
BT_ERROR_NONESuccessful
BT_ERROR_NOT_INITIALIZEDNot initialized
BT_ERROR_NOT_ENABLEDNot enabled
BT_ERROR_REMOTE_DEVICE_NOT_CONNECTEDRemote device is not connected
BT_ERROR_PERMISSION_DENIEDPermission denied
BT_ERROR_NOT_SUPPORTEDNot supported
Precondition
The SCO must be opened with bt_ag_open_sco().
Postcondition
bt_ag_sco_state_changed_cb() will be invoked.
See also
bt_ag_open_sco()
bt_ag_sco_state_changed_cb()
int bt_ag_open_sco ( void  )

Opens a SCO(Synchronous Connection Oriented link) to connected remote device, asynchronously. 2.3 platform http://tizen.org/privilege/bluetooth.admin.

Returns
0 on success, otherwise a negative error value.
Return values
BT_ERROR_NONESuccessful
BT_ERROR_NOT_INITIALIZEDNot initialized
BT_ERROR_NOT_ENABLEDNot enabled
BT_ERROR_REMOTE_DEVICE_NOT_CONNECTEDRemote device is not connected
BT_ERROR_ALREADY_DONEOperation is already done
BT_ERROR_OPERATION_FAILEDOperation failed
BT_ERROR_PERMISSION_DENIEDPermission denied
BT_ERROR_NOT_SUPPORTEDNot supported
Precondition
The Bluetooth audio device must be connected with bt_audio_connect().
Postcondition
bt_ag_sco_state_changed_cb() will be invoked.
See also
bt_ag_close_sco()
bt_ag_sco_state_changed_cb()
bt_audio_connect()