WS_Bluetooth.h 704 B

123456789101112131415161718192021
  1. #ifndef _WS_BLUETOOTH_H_
  2. #define _WS_BLUETOOTH_H_
  3. #include <BLEDevice.h>
  4. #include <BLEUtils.h>
  5. #include <BLEServer.h>
  6. #include "WS_GPIO.h"
  7. #define SERVICE_UUID "4fafc201-1fb5-459e-8fcc-c5c9c331914b" // UUID of the server
  8. #define RX_CHARACTERISTIC_UUID "beb5483e-36e1-4688-b7f5-ea07361b26a8" // UUID of the characteristic Tx
  9. #define TX_CHARACTERISTIC_UUID "beb5484a-36e1-4688-b7f5-ea07361b26a8" // UUID of the characteristic Rx
  10. #define Bluetooth_Mode 2
  11. extern void SetRelays(std::string value);
  12. extern std::string GetRelays();
  13. void SetStatus(char * Data);
  14. // Send data using Bluetooth
  15. void Bluetooth_Init();
  16. #endif