Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
ICE-Application/src/add-ons/BLE/inc/ble_main.h
- Committer:
- jmarkel44
- Date:
- 2017-01-24
- Revision:
- 1:b2e90cda7a5a
- Parent:
- 0:61364762ee0e
File content as of revision 1:b2e90cda7a5a:
/**
******************************************************************************
* @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 */
/******************************************************************************/