Julia DESMAZES / Mbed 2 deprecated Hexapode

Dependencies:   mbed BLE_API X_NUCLEO_IDB0XA1 MODSERIAL

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers Sheald_BLE.h Source File

Sheald_BLE.h

00001 #ifndef  SHEALD_BLE_H
00002 #define  SHEALD_BLE_H
00003 //#include "X_NUCLEO_IDB0XAI.h"
00004 #include "BLE.h"
00005 #include "DeviceInformationService.h"
00006 #include "UARTService.h"
00007 #include "Utils.h"
00008 
00009  class STM32_BLE
00010  {
00011      public :
00012      STM32_BLE();
00013      ~STM32_BLE();
00014      bool init();
00015      private:
00016      BLED  ble;
00017      UARTService *uartServicePtr;
00018      const static char     *DEVICE_NAME  ;
00019      uint8_t c ; 
00020     bool user_button_pressed;
00021     bool connected;
00022     bool UpdatedEnabled ;
00023     void disconnectionCallback(Gap::Handle_t handle, Gap::DisconnectionReason_t reason);
00024     void connectionCallback(Gap::Handle_t handle, const Gap::ConnectionParams_t *reason);
00025     void onUpdatesEnabled(uint16_t attributeHandle);
00026     void onUpdatesDisabled(uint16_t attributeHandle);
00027      };
00028 #endif