keshavdv / victron-ble

A Python API to parse Victron Instant Readout BLE advertisements
The Unlicense
88 stars 30 forks source link

Check the first byte of the encryption key #22

Closed stefanor closed 1 year ago

stefanor commented 1 year ago

The first byte of the message is a check-byte to see that we have the correct decryption key.

This implements the check, and raises a (new) exception if it fails.

Part of: #17