|
594 | 594 | b"000000C1", # Success ack |
595 | 595 | b"003A" # msg_id |
596 | 596 | + b"0098765432101234" # mac |
597 | | - + bytes(f"{(fixed_time + timedelta(seconds=10)).second:02d}", pw_constants.UTF8) # noqa: UP031 |
598 | | - + bytes(f"{fixed_time.minute:02d}", pw_constants.UTF8) # noqa: UP031 |
599 | | - + bytes(f"{fixed_time.hour:02d}", pw_constants.UTF8) # noqa: UP031 |
600 | | - + bytes(f"{fixed_time.weekday():02d}", pw_constants.UTF8) # noqa: UP031 |
601 | | - + bytes(f"{fixed_time.day:02d}", pw_constants.UTF8) # noqa: UP031 |
602 | | - + bytes(f"{fixed_time.month:02d}", pw_constants.UTF8) # noqa: UP031 |
603 | | - + bytes(f"{(fixed_time.year - 2000):02d}", pw_constants.UTF8), # noqa: UP031 |
| 597 | + + bytes(f"{(fixed_time + timedelta(seconds=10)).second:02d}", pw_constants.UTF8) |
| 598 | + + bytes(f"{fixed_time.minute:02d}", pw_constants.UTF8) |
| 599 | + + bytes(f"{fixed_time.hour:02d}", pw_constants.UTF8) |
| 600 | + + bytes(f"{fixed_time.weekday():02d}", pw_constants.UTF8) |
| 601 | + + bytes(f"{fixed_time.day:02d}", pw_constants.UTF8) |
| 602 | + + bytes(f"{fixed_time.month:02d}", pw_constants.UTF8) |
| 603 | + + bytes(f"{(fixed_time.year - 2000):02d}", pw_constants.UTF8), |
604 | 604 | ), |
605 | 605 | b"\x05\x05\x03\x0300280098765432101234000022030304259DDF\r\n": ( |
606 | 606 | "Circle+ Realtime set clock for 0098765432101234", |
|
612 | 612 | b"000000C1", # Success ack |
613 | 613 | b"003F" # msg_id |
614 | 614 | + b"1111111111111111" # mac |
615 | | - + bytes(f"{fixed_time.hour:02x}", pw_constants.UTF8) # noqa: UP031 |
616 | | - + bytes(f"{fixed_time.minute:02x}", pw_constants.UTF8) # noqa: UP031 |
617 | | - + bytes(f"{(fixed_time + timedelta(seconds=10)).second:02x}", pw_constants.UTF8) # noqa: UP031 |
618 | | - + bytes(f"{fixed_time.weekday():02x}", pw_constants.UTF8) # noqa: UP031 |
| 615 | + + bytes(f"{fixed_time.hour:02x}", pw_constants.UTF8) |
| 616 | + + bytes(f"{fixed_time.minute:02x}", pw_constants.UTF8) |
| 617 | + + bytes(f"{(fixed_time + timedelta(seconds=10)).second:02x}", pw_constants.UTF8) |
| 618 | + + bytes(f"{fixed_time.weekday():02x}", pw_constants.UTF8) |
619 | 619 | + b"00" # unknown |
620 | 620 | + b"0000", # unknown2 |
621 | 621 | ), |
|
624 | 624 | b"000000C1", # Success ack |
625 | 625 | b"003F" # msg_id |
626 | 626 | + b"2222222222222222" # mac |
627 | | - + bytes(f"{fixed_time.hour:02x}", pw_constants.UTF8) # noqa: UP031 |
628 | | - + bytes(f"{fixed_time.minute:02x}", pw_constants.UTF8) # noqa: UP031 |
629 | | - + bytes(f"{fixed_time.second:02x}", pw_constants.UTF8) # noqa: UP031 |
630 | | - + bytes(f"{fixed_time.weekday():02x}", pw_constants.UTF8) # noqa: UP031 |
| 627 | + + bytes(f"{fixed_time.hour:02x}", pw_constants.UTF8) |
| 628 | + + bytes(f"{fixed_time.minute:02x}", pw_constants.UTF8) |
| 629 | + + bytes(f"{fixed_time.second:02x}", pw_constants.UTF8) |
| 630 | + + bytes(f"{fixed_time.weekday():02x}", pw_constants.UTF8) |
631 | 631 | + b"00" # unknown |
632 | 632 | + b"0000", # unknown2 |
633 | 633 | ), |
|
636 | 636 | b"000000C1", # Success ack |
637 | 637 | b"003F" # msg_id |
638 | 638 | + b"3333333333333333" # mac |
639 | | - + bytes(f"{fixed_time.hour:02x}", pw_constants.UTF8) # noqa: UP031 |
640 | | - + bytes(f"{fixed_time.minute:02x}", pw_constants.UTF8) # noqa: UP031 |
641 | | - + bytes(f"{fixed_time.second:02x}", pw_constants.UTF8) # noqa: UP031 |
642 | | - + bytes(f"{fixed_time.weekday():02x}", pw_constants.UTF8) # noqa: UP031 |
| 639 | + + bytes(f"{fixed_time.hour:02x}", pw_constants.UTF8) |
| 640 | + + bytes(f"{fixed_time.minute:02x}", pw_constants.UTF8) |
| 641 | + + bytes(f"{fixed_time.second:02x}", pw_constants.UTF8) |
| 642 | + + bytes(f"{fixed_time.weekday():02x}", pw_constants.UTF8) |
643 | 643 | + b"00" # unknown |
644 | 644 | + b"0000", # unknown2 |
645 | 645 | ), |
|
648 | 648 | b"000000C1", # Success ack |
649 | 649 | b"003F" # msg_id |
650 | 650 | + b"4444444444444444" # mac |
651 | | - + bytes(f"{fixed_time.hour:02x}", pw_constants.UTF8) # noqa: UP031 |
652 | | - + bytes(f"{fixed_time.minute:02x}", pw_constants.UTF8) # noqa: UP031 |
653 | | - + bytes(f"{fixed_time.second:02x}", pw_constants.UTF8) # noqa: UP031 |
654 | | - + bytes(f"{fixed_time.weekday():02x}", pw_constants.UTF8) # noqa: UP031 |
| 651 | + + bytes(f"{fixed_time.hour:02x}", pw_constants.UTF8) |
| 652 | + + bytes(f"{fixed_time.minute:02x}", pw_constants.UTF8) |
| 653 | + + bytes(f"{fixed_time.second:02x}", pw_constants.UTF8) |
| 654 | + + bytes(f"{fixed_time.weekday():02x}", pw_constants.UTF8) |
655 | 655 | + b"00" # unknown |
656 | 656 | + b"0000", # unknown2 |
657 | 657 | ), |
|
0 commit comments