feat/add-basic-telemetry #10

Merged
pufereq merged 8 commits from feat/add-basic-telemetry into develop 2026-03-08 19:42:40 +00:00
4 changed files with 173 additions and 4 deletions
Showing only changes of commit d6415712d9 - Show all commits

View File

@@ -116,6 +116,14 @@ class Connector:
hello_message: Message = Message.Control.hello(self.mac_address)
self.send(hello_message)
def send_initial_telemetry(self) -> None:
"""Send initial telemetry data to the server."""
self.logger.debug("[*] Sending initial telemetry...")
telemetry_message: Message = Message.Telemetry.initial(
self.client.initial_telemetry
)
self.send(telemetry_message)
def close(self) -> None:
"""Close the connection and clean up resources."""
self.logger.debug("[*] Closing connection...")
@@ -177,6 +185,7 @@ class Connector:
self.logger.debug("[*] Connected, sending HELLO...")
self.send_hello()
self.send_initial_telemetry()
def run(self) -> None:
"""Run the main event loop."""