Closed timvisee closed 4 years ago
Got it. I implemented this according to the BlueZ spec and it defines the long term key type enum inconsistently for different events:
So I didn't see the version of the enum that includes the value 3
.
Awesome. Thanks for the quick fix!
After confirming a connection request, I'm getting a panic happening at the following line:
https://github.com/laptou/bluez-rs/blob/02ec3fc08f6f10e4717ed7dfa3e0a2f3c2354676/src/interface/response.rs#L75
This apparently comes up when processing the
NewLongTermKey
event.buf.get_u8()
gives a3
. TheFromPrimitive
helper can't parse this into aLongTermKeyType
which is why it panics.Any idea what is going on?