WS_Bluetooth.h 766 B

1234567891011121314151617181920212223
  1. #ifndef _WS_BLUETOOTH_H_
  2. #define _WS_BLUETOOTH_H_
  3. #include <HardwareSerial.h> // Reference the ESP32 built-in serial port library
  4. #include <BLEDevice.h>
  5. #include <BLEUtils.h>
  6. #include <BLEServer.h>
  7. #include "WS_GPIO.h"
  8. #include "WS_Serial.h"
  9. #include "WS_Information.h"
  10. #define SERVICE_UUID "4fafc201-1fb5-459e-8fcc-c5c9c331914b" // UUID of the server
  11. #define RX_CHARACTERISTIC_UUID "beb5483e-36e1-4688-b7f5-ea07361b26a8" // UUID of the characteristic Tx
  12. #define TX_CHARACTERISTIC_UUID "beb5484a-36e1-4688-b7f5-ea07361b26a8" // UUID of the characteristic Rx
  13. #define Bluetooth_Mode 2
  14. extern void Relay_Analysis(uint8_t *buf,uint8_t Mode_Flag);
  15. void Bluetooth_SendData(char * Data);
  16. void Bluetooth_Init();
  17. #endif