added testcases / a bit refactored

This commit is contained in:
Meydin87
2023-07-09 07:57:06 +02:00
parent 58325fdd88
commit d8a9bb7610
7 changed files with 91 additions and 15 deletions

View File

@@ -15,9 +15,9 @@ Packages
---------------------------------
0xF00: HELLO->ADOPT
Payload:
2 bytes | DeviceId -> DeviceId Explicit
2 bytes | Byte -> Software-Version (1.0)
2 bytes | Byte -> Hw Version (4.0
2 bytes | Byte -> Hw Version (4.0)
2 bytes | DeviceId -> DeviceId Explicit
0x050: Input Switch Triggered
-> Broadcast
@@ -29,7 +29,7 @@ Payload:
0x055: Command Set Switch
-> Broadcast
---------------------------------
2 bytes | TargetDeviceId -> The id of the board
2 bytes | TargetDeviceId -> The id of the device to set the pin of
1 byte | PinId -> Idof the pin of the board
1 byte | state -> 1 to swtich on, 0 to switch off