Felipe Martins Diel
e12fd6f115
Make the type a class attribute ( #530 )
2021-01-29 18:22:58 -03:00
Felipe Martins Diel
21fa2a20bf
Add a function to send ping packets ( #526 )
...
Rename 'host' attribute to 'address' (ping) (#528 )
2021-01-29 18:22:58 -03:00
Felipe Martins Diel
9af3a3c56c
Clean up device.py ( #523 )
...
* Clean up device.send_packet()
* Clean up device.auth()
* Clean up scan()
2021-01-29 18:22:58 -03:00
Felipe Martins Diel
b33bbdbbcf
Fix encryption errors ( #505 )
2021-01-29 18:17:45 -03:00
Felipe Martins Diel
c3bb598e27
Timeout improvements ( #464 )
...
- Only start to count the timer inside the lock.
- Improve precision of the timeout option.
- Use a context manager for the connection.
- Remove SO_REUSEADDR option.
Amend: Revert retry_intvl (#506 )
2021-01-29 18:17:45 -03:00
Felipe Martins Diel
bdc5432e2e
Clamp the packet count between 0x8000 and 0xFFFF ( #486 )
2021-01-29 18:17:45 -03:00
Kendell R
dfd3372c36
Add GH Actions ( #470 )
...
Add GitHub actions and run black.
2021-01-29 18:17:45 -03:00
Felipe Martins Diel
73dab5c3d5
Overload __str__ in the device class ( #468 )
2020-11-05 20:19:03 +01:00
Felipe Martins Diel
6f1f976e2f
Update packet count in the authentication step
2020-10-24 02:19:01 -07:00
Felipe Martins Diel
16abdf850f
Improve device discovery ( #438 )
...
This update improves device discovery by broadcasting several hello messages and ignoring repeated responses.
2020-10-18 00:47:21 -07:00
Felipe Martins Diel
0dc0068d63
Improve code quality ( #428 )
...
* Fix lint errors
* Remove rm2 class
* Rename cs to conn
* Add __repr__ to device class
* Make get_devices() a dictionary
* Clean up alarm kit
* Add module doscstrings
* Fix MAC address conversion
2020-09-24 07:36:12 +02:00
Felipe Martins Diel
28fa72f962
Make bind() optional and implement a generator for device discovery ( #427 )
2020-09-23 07:43:56 +02:00
Felipe Martins Diel
5ef4124491
Remove legacy byte conversions
2020-09-20 17:11:14 -07:00
Felipe Martins Diel
08c020e597
Call Mr. Krueger
2020-09-20 02:10:18 -07:00