replace : iotivity -> iotivity-sec
[platform/upstream/iotivity.git] / resource / csdk / connectivity / src / bt_le_adapter / ios / caleutils.h
1 /* ****************************************************************
2  *
3  * Copyright 2017 Samsung Electronics All Rights Reserved.
4  *
5  *
6  *
7  * Licensed under the Apache License, Version 2.0 (the "License");
8  * you may not use this file except in compliance with the License.
9  * You may obtain a copy of the License at
10  *
11  *      http://www.apache.org/licenses/LICENSE-2.0
12  *
13  * Unless required by applicable law or agreed to in writing, software
14  * distributed under the License is distributed on an "AS IS" BASIS,
15  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16  * See the License for the specific language governing permissions and
17  * limitations under the License.
18  *
19  ******************************************************************/
20
21 /**
22  * @file
23  * This file contains the APIs for BT LE communications.
24  */
25 #ifndef CA_LE_UTILS_H_
26 #define CA_LE_UTILS_H_
27
28 #import <Foundation/Foundation.h>
29 #import <CoreBluetooth/CoreBluetooth.h>
30
31 #include "cacommon.h"
32 #include "cathreadpool.h"
33 #include "cagattservice.h"
34 #include "uarraylist.h"
35
36 #ifdef __cplusplus
37 extern "C"
38 {
39 #endif
40
41 static const char OIC_GATT_SERVICE_UUID[] = CA_GATT_SERVICE_UUID;
42 static const char OIC_GATT_CHARACTERISTIC_REQUEST_UUID[] = CA_GATT_REQUEST_CHRC_UUID;
43 static const char OIC_GATT_CHARACTERISTIC_RESPONSE_UUID[] = CA_GATT_RESPONSE_CHRC_UUID;
44 static const char OIC_GATT_CHARACTERISTIC_CONFIG_UUID[] = "00002902-0000-1000-8000-00805f9b34fb";
45
46 static const int GATT_PROFILE = 7;
47 static const int GATT_SUCCESS = 0;
48
49 static const int BOND_BONDED = 12;
50 static const int BOND_BONDING = 11;
51 static const int BOND_NONE = 10;
52
53 static const int STATE_CONNECTED = 2;
54 static const int STATE_DISCONNECTED = 0;
55
56 typedef enum{
57     CALE_STATE_OFF = 0,
58     CALE_STATE_ON = 1,
59     CALE_STATE_TURNING_OFF = 2
60 } CALE_STATE_t;
61
62 #ifdef __cplusplus
63 } /* extern "C" */
64 #endif
65
66 #endif /* CA_LE_UTILS_H_ */