| 12345678910111213141516171819202122232425262728293031323334 | #ifndef _WS_BLUETOOTH_H_#define _WS_BLUETOOTH_H_#include <BLEDevice.h>#include <BLEUtils.h>#include <BLEServer.h>#define CONFIG_SERVICE_UUID "ce6c0b18-0000-1000-8000-00805F9B34FB"                              #define CONFIG_CHARACTERISTIC_UUID  "447c1982-77ef-49be-a39a-2920f33c31e5"                              #define CONTROL_CHARACTERISTIC_UUID  "5b804487-b73f-406a-8240-649c23ad1590"#define Bluetooth_Mode    2extern void Configure(String name, String warning, String contact, String id);extern String GetMacAddress();extern String GetDeviceName();extern String GetWarningNotice();extern String GetContactInfo();extern String GetEquipmentId();extern bool GetRelay(int relay);extern void SetRelay(int relay, long time);String DeviceStatus();String UUID128ToAdvertisingData(BLEUUID uuid128);String UUID32ToAdvertisingData(uint32_t uuid32);extern void Restart();void Bluetooth_Init();bool IsConnected();void UpdateAdvertising();#endif
 |