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.
|
||||
|
||||
## [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
|
||||
|
||||
### Features
|
||||
|
||||
@@ -4,7 +4,7 @@ build-backend = "uv_build"
|
||||
|
||||
[project]
|
||||
name = "judas_protocol"
|
||||
version = "0.5.0"
|
||||
version = "0.6.0"
|
||||
description = "The judas protocol"
|
||||
readme = "README.md"
|
||||
authors = []
|
||||
|
||||
@@ -165,11 +165,11 @@ class Message:
|
||||
)
|
||||
|
||||
@classmethod
|
||||
def hello(cls, mac: str) -> Message:
|
||||
def hello(cls, id_: str) -> Message:
|
||||
"""Create a HELLO message.
|
||||
|
||||
Args:
|
||||
mac (str): The MAC address to include in the HELLO message.
|
||||
id_ (str): The ID to include in the HELLO message.
|
||||
Returns:
|
||||
Message: The created HELLO message.
|
||||
"""
|
||||
@@ -177,7 +177,7 @@ class Message:
|
||||
id_=None,
|
||||
category=Category.CONTROL,
|
||||
action=ControlAction.HELLO,
|
||||
payload={"mac": mac},
|
||||
payload={"id": id_},
|
||||
acknowledged=False,
|
||||
ack_required=True,
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user