WS_Bluetooth.h 750 B

12345678910111213141516171819202122
  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. #include "WS_Serial.h"
  8. #include "WS_Information.h"
  9. #define SERVICE_UUID "4fafc201-1fb5-459e-8fcc-c5c9c331914b" // UUID of the server
  10. #define RX_CHARACTERISTIC_UUID "beb5483e-36e1-4688-b7f5-ea07361b26a8" // UUID of the characteristic Tx
  11. #define TX_CHARACTERISTIC_UUID "beb5484a-36e1-4688-b7f5-ea07361b26a8" // UUID of the characteristic Rx
  12. #define Bluetooth_Mode 2
  13. extern void Relay_Analysis(uint8_t *buf,uint8_t Mode_Flag);
  14. void Bluetooth_SendData(char * Data); // Send data using Bluetooth
  15. void Bluetooth_Init();
  16. #endif