generated from pufereq/python-template
Compare commits
2 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
d16c1914ba | ||
|
fbcce017a0
|
@@ -2,6 +2,12 @@
|
|||||||
|
|
||||||
All notable changes to this project will be documented in this file.
|
All notable changes to this project will be documented in this file.
|
||||||
|
|
||||||
|
## [0.6.0] - 2026-02-28
|
||||||
|
|
||||||
|
### Refactor
|
||||||
|
|
||||||
|
- [`fbcce01`](https://gitea.pufereq.pl/judas/judas_protocol/commit/fbcce017a0fb4e3e11916479413dc81fd313a52c) **message.py**: rename `mac` -> `id`
|
||||||
|
|
||||||
## [0.5.0] - 2025-11-19
|
## [0.5.0] - 2025-11-19
|
||||||
|
|
||||||
### Features
|
### Features
|
||||||
|
|||||||
@@ -4,7 +4,7 @@ build-backend = "uv_build"
|
|||||||
|
|
||||||
[project]
|
[project]
|
||||||
name = "judas_protocol"
|
name = "judas_protocol"
|
||||||
version = "0.5.0"
|
version = "0.6.0"
|
||||||
description = "The judas protocol"
|
description = "The judas protocol"
|
||||||
readme = "README.md"
|
readme = "README.md"
|
||||||
authors = []
|
authors = []
|
||||||
|
|||||||
@@ -165,11 +165,11 @@ class Message:
|
|||||||
)
|
)
|
||||||
|
|
||||||
@classmethod
|
@classmethod
|
||||||
def hello(cls, mac: str) -> Message:
|
def hello(cls, id_: str) -> Message:
|
||||||
"""Create a HELLO message.
|
"""Create a HELLO message.
|
||||||
|
|
||||||
Args:
|
Args:
|
||||||
mac (str): The MAC address to include in the HELLO message.
|
id_ (str): The ID to include in the HELLO message.
|
||||||
Returns:
|
Returns:
|
||||||
Message: The created HELLO message.
|
Message: The created HELLO message.
|
||||||
"""
|
"""
|
||||||
@@ -177,7 +177,7 @@ class Message:
|
|||||||
id_=None,
|
id_=None,
|
||||||
category=Category.CONTROL,
|
category=Category.CONTROL,
|
||||||
action=ControlAction.HELLO,
|
action=ControlAction.HELLO,
|
||||||
payload={"mac": mac},
|
payload={"id": id_},
|
||||||
acknowledged=False,
|
acknowledged=False,
|
||||||
ack_required=True,
|
ack_required=True,
|
||||||
)
|
)
|
||||||
|
|||||||
Reference in New Issue
Block a user