Open rogueWookie opened 8 months ago
The output looks correct. The primary header fields are placed contiguously, with the first 3 bits (bit 0 to 2) being the version number, then bit 3 as packet type and bit 4 as secondary header flag.
The first byte is 0b00010000 for the first example , so bit 3 is one, which is correct.
@robamu @JakobMeier
Hi ~ My understanding per the standard is that
packet_type
should correlate to bit three andsec_header_flag
should correlate to bit four. However, w/ your API it's as if you've got these two swapped around. Hopefully, I've misinterpreted something.Here's how to replicate my findings. As you'll see below, when I set packet_type to 1 then bit 4 will flip and when I set secondary header flag to 1 then bit 3 will flip.
I doubt my environment matters but to be thorough here is my complete setup on my laptop including package version, python version, and operating system information.