esp32-car/include/ble.h

25 lines
447 B
C
Raw Permalink Normal View History

2024-12-27 09:47:56 +08:00
#ifndef BLE_H
#define BLE_H
#include <Arduino.h>
#include <BLEDevice.h>
#include <BLEServer.h>
#include <BLEUtils.h>
#include <BLE2902.h>
#include <transmit.h>
#include "consts.h"
class BLEManager
{
public:
static bool deviceConnected;
static BLEServer *pServer;
static BLECharacteristic *pTxCharacteristic;
static void init(String deviceName);
2024-12-27 10:16:08 +08:00
static void updateDeviceName(const String &newName);
static void restart();
2024-12-27 09:47:56 +08:00
};
#endif