WS_Bluetooth.h 820 B

1234567891011121314151617181920212223242526272829
  1. #ifndef _WS_BLUETOOTH_H_
  2. #define _WS_BLUETOOTH_H_
  3. #include <BLEDevice.h>
  4. #include <BLEUtils.h>
  5. #include <BLEServer.h>
  6. #define CONFIG_SERVICE_UUID "ce6c0b18-0000-1000-8000-00805F9B34FB"
  7. #define CONFIG_CHARACTERISTIC_UUID "447c1982-77ef-49be-a39a-2920f33c31e5"
  8. #define CONTROL_CHARACTERISTIC_UUID "5b804487-b73f-406a-8240-649c23ad1590"
  9. #define Bluetooth_Mode 2
  10. extern void Configure(String name, String warning, String contact, String id);
  11. extern String GetMacAddress();
  12. extern String GetDeviceName();
  13. extern String GetWarningNotice();
  14. extern String GetContactInfo();
  15. extern String GetEquipmentId();
  16. extern bool GetRelay(int relay);
  17. extern void SetRelay(int relay, long time);
  18. extern void Restart();
  19. void Bluetooth_Init();
  20. bool IsConnected();
  21. #endif