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