mirror of https://github.com/sqfmi/Watchy.git
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
40 lines
745 B
40 lines
745 B
#ifndef _BLE_H_ |
|
#define _BLE_H_ |
|
|
|
#include "Arduino.h" |
|
|
|
#include <BLE2902.h> |
|
#include <BLEDevice.h> |
|
#include <BLEServer.h> |
|
#include <BLEUtils.h> |
|
|
|
#include "esp_ota_ops.h" |
|
|
|
#include "config.h" |
|
|
|
class BLE; |
|
|
|
class BLE { |
|
public: |
|
BLE(void); |
|
~BLE(void); |
|
|
|
bool begin(const char *localName); |
|
int updateStatus(); |
|
int howManyBytes(); |
|
|
|
private: |
|
String local_name; |
|
|
|
BLEServer *pServer = NULL; |
|
|
|
BLEService *pESPOTAService = NULL; |
|
BLECharacteristic *pESPOTAIdCharacteristic = NULL; |
|
|
|
BLEService *pService = NULL; |
|
BLECharacteristic *pVersionCharacteristic = NULL; |
|
BLECharacteristic *pOtaCharacteristic = NULL; |
|
BLECharacteristic *pWatchFaceNameCharacteristic = NULL; |
|
}; |
|
|
|
#endif
|
|
|