1 /* ****************************************************************
3 * Copyright 2017 Samsung Electronics All Rights Reserved.
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
11 * http://www.apache.org/licenses/LICENSE-2.0
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.
19 ******************************************************************/
23 * This file contains the APIs for BT LE communications.
25 #ifndef CA_LE_UTILS_H_
26 #define CA_LE_UTILS_H_
28 #import <Foundation/Foundation.h>
29 #import <CoreBluetooth/CoreBluetooth.h>
32 #include "cathreadpool.h"
33 #include "cagattservice.h"
34 #include "uarraylist.h"
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";
46 static const int GATT_PROFILE = 7;
47 static const int GATT_SUCCESS = 0;
49 static const int BOND_BONDED = 12;
50 static const int BOND_BONDING = 11;
51 static const int BOND_NONE = 10;
53 static const int STATE_CONNECTED = 2;
54 static const int STATE_DISCONNECTED = 0;
59 CALE_STATE_TURNING_OFF = 2
66 #endif /* CA_LE_UTILS_H_ */