esphome/components/esp32_presense/MiFloraHandler.h

16 lines
590 B
C
Raw Normal View History

2023-12-07 23:51:43 +03:00
#pragma once
#include <ArduinoJson.h>
2023-12-10 09:08:23 +03:00
#include "BleFingerprint.h"
2023-12-07 23:51:43 +03:00
#include "NimBLEClient.h"
#include "NimBLEDevice.h"
namespace MiFloraHandler
{
static BLEUUID serviceUUID(0x00001204, 0x0000, 0x1000, 0x800000805f9b34fb);
static BLEUUID uuid_version_battery(0x00001a02, 0x0000, 0x1000, 0x800000805f9b34fb);
static BLEUUID uuid_sensor_data(0x00001a01, 0x0000, 0x1000, 0x800000805f9b34fb);
static BLEUUID uuid_write_mode(0x00001a00, 0x0000, 0x1000, 0x800000805f9b34fb);
bool requestData(NimBLEClient* pClient, BleFingerprint* fingerprint);
} // namespace MiFloraHandler