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