1 /* ****************************************************************
3 * Copyright 2014 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 ******************************************************************/
24 * This file contains the APIs related to the GATT Server functionalities.
25 * Creation of the GATT Server with the characteristics. Enabling the
26 * advertisement and updating the characteristics for the response and
27 * notifying the change of characteristics for the request will be done here.
30 #ifndef BLE_ADAPTER_ARDUINO_H_
31 #define BLE_ADAPTER_ARDUINO_H_
34 #include "caadapterinterface.h"
42 * API to initialize Arduino BLE module and advertise the service.
43 * @return ::CA_STATUS_OK or Appropriate error code.
45 CAResult_t CALEInitialize();
48 * API to check whether data is available in BLE shield.
49 * @return - Received buffer length.
51 unsigned char CAIsLEDataAvailable();
54 * API to check whether client is connected with BLE Shield.
55 * @return - Connection state.
57 unsigned char CAIsLEConnected();
60 * API to read data from BLE shield.
61 * @return - Data read.
66 * API to perform BLE events.
67 * @return ::CA_STATUS_OK or Appropriate error code.
69 CAResult_t CALEDoEvents();
75 #endif /* BLE_ADAPTER_ARDUINO_H_ */