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.
Dependencies: mbed BLE_API X_NUCLEO_IDB0XA1 MODSERIAL
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
Generated on Thu Jul 14 2022 17:21:51 by
1.7.2