Bluetooth API가 정의되어있다.
More...
#include "Commnucation/Bluetooth.h"
#include <stdlib.h>
#include <stdbool.h>
#include <system_info.h>
#include <app_control.h>
#include <dlog.h>
#include <glib.h>
Bluetooth API가 정의되어있다.
- Note
- Bluetooth API가 정의되어있다.
- See Also
- Bluetooth.h
| const char* BluetoothErrorCheck |
( |
int |
errCode | ) |
|
Bluetooth API에서 발생하는 Error Code들을 확인 해준다.
- Parameters
-
| [in] | errCode | 확인 하고자 하는 Error Code |
| [out] | null | |
- Return values
-
| BT_ERROR_NONE | : Successful |
| BT_ERROR_CANCELLED | : Operation cancelled |
| BT_ERROR_INVALID_PARAMETER | : Invalid parameter |
| BT_ERROR_OUT_OF_MEMORY | : Out of memory |
| BT_ERROR_RESOURCE_BUSY | : Device or resource busy |
| BT_ERROR_TIMED_OUT | : Timeout error |
| BT_ERROR_NOW_IN_PROGRESS | : Operation now in progress |
| BT_ERROR_NOT_SUPPORTED | : Not Supported |
| BT_ERROR_PERMISSION_DENIED | : Permission denied |
| BT_ERROR_QUOTA_EXCEEDED | : Quota exceeded |
| BT_ERROR_NOT_INITIALIZED | : Local adapter not initialized |
| BT_ERROR_NOT_ENABLED | : Local adapter not enabled |
| BT_ERROR_ALREADY_DONE | : Operation already done |
| BT_ERROR_OPERATION_FAILED | : Operation failed |
| BT_ERROR_NOT_IN_PROGRESS | : Operation not in progress |
| BT_ERROR_REMOTE_DEVICE_NOT_BONDED | : Remote device not bonded |
| BT_ERROR_AUTH_REJECTED | : Authentication rejected |
| BT_ERROR_AUTH_FAILED | : Authentication failed |
| BT_ERROR_REMOTE_DEVICE_NOT_FOUND | : Remote device not found |
| BT_ERROR_SERVICE_SEARCH_FAILED | : Service search failed |
| BT_ERROR_REMOTE_DEVICE_NOT_CONNECTED | : Remote device is not connected |
| BT_ERROR_AGAIN | : Resource temporarily unavailable |
| BT_ERROR_SERVICE_NOT_FOUND | : Service Not Found |
| BT_ERROR_UNKNWON | : Unknown error occurred |
- Note
- Bluetooth API에서 발생하는 Error Code들을 확인 해준다.
Error의 내용은 Log를 통해 출력 된다.
24가지의 Error Code들을 확인 가능 하다.
- See Also
- Tizen Native API Document - Bluetooth part
| bool BluetoothFileRecv |
( |
Bluetooth |
this_gen, |
|
|
String * |
recvBuffer |
|
) |
| |
| bool BluetoothFileSend |
( |
Bluetooth |
this_gen, |
|
|
String |
sendbuffer |
|
) |
| |
| void DestroyBluetooth |
( |
Bluetooth |
this_gen | ) |
|
생성한 Bluetooth 객체를 소멸 시킨다.
- Parameters
-
| [in] | this_gen | 소멸시킬 Bluetooth 객체 |
| [out] | null | |
- Return values
-
- Note
- 생성한 Bluetooth 객체를 소멸 시킨다.
Bluetooth 객체를 사용한 후 반드시 호출해야 한다.
- See Also
- NewBluetooth
- Precondition
- feature
| bool isBluetoothAccessible |
( |
Bluetooth |
this_gen | ) |
|
| bool isBluetoothConnected |
( |
Bluetooth |
this_gen | ) |
|
| Bluetooth NewBluetooth |
( |
void |
| ) |
|
| bool onBluetoothConnect |
( |
Bluetooth |
this_gen | ) |
|
| bool onBluetoothDisconnect |
( |
Bluetooth |
this_gen | ) |
|