mirror of
https://github.com/espressif/esp-idf.git
synced 2026-10-01 18:50:34 +03:00
fix(ble): added missed dataclass decorator for backport
This commit is contained in:
@@ -3,6 +3,7 @@
|
||||
|
||||
from __future__ import annotations
|
||||
|
||||
from dataclasses import dataclass
|
||||
from enum import Enum
|
||||
|
||||
from .constants import NUS_RX_CHAR_UUID
|
||||
@@ -16,12 +17,14 @@ class ConnectionState(str, Enum):
|
||||
CONNECTED = 'CONNECTED'
|
||||
|
||||
|
||||
@dataclass(frozen=True)
|
||||
class DeviceInfo:
|
||||
device_id: str
|
||||
name: str | None
|
||||
rssi: int | None
|
||||
|
||||
|
||||
@dataclass(frozen=True)
|
||||
class BLEUARTProfile:
|
||||
service_uuid: str = NUS_SERVICE_UUID
|
||||
rx_char_uuid: str = NUS_RX_CHAR_UUID
|
||||
|
||||
Reference in New Issue
Block a user