Erick / Mbed 2 deprecated ICE-F412

Dependencies:   mbed-rtos mbed

Revision:
0:61364762ee0e
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/ICE-Application/src/add-ons/BLE/inc/ble_main.h	Tue Jan 24 19:05:33 2017 +0000
@@ -0,0 +1,41 @@
+/**
+  ******************************************************************************
+  * @file    ble_types.h
+  * @author  Happiesstminds Firmware Team
+  * @version v1.0
+  * @date    4-Oct-2016
+  * @brief   
+  *
+  ******************************************************************************
+  * @attention
+  *  
+  *
+  ******************************************************************************
+  */
+
+#ifndef _BLE_MAIN_H
+#define _BLE_MAIN_H
+
+uint8_t PollBLEEvents(void);
+
+typedef void (*ble_data_ready_callback_t) (uint8_t *rx_data, uint8_t data_length);
+void BleDataRxCbRegister(ble_data_ready_callback_t data_rx_callback);
+class BLE_FILE
+{
+   public:
+      // Member functions declaration
+        uint8_t ConfigureBLEDevice(const char * device_name);
+        void SendFile(uint8_t* json_file,uint8_t len);
+        bool GetBleConnectionState(void);
+};
+
+
+#define COMMAND_LENGTH  4
+#define DATA_LENGTH     0
+#define FAILURE 0
+#define MAX_PAYLOAD_BYTES 20
+
+#endif
+/******************************************************************************/
+/* END OF FILE                                                                */
+/******************************************************************************/
\ No newline at end of file