BastilleResearch / mousejack

MouseJack device discovery and research tools
GNU General Public License v3.0
1.29k stars 254 forks source link

Endianness of address #18

Open ikarus23 opened 8 years ago

ikarus23 commented 8 years ago

Is there a reason why the endianness for the address is different on the output of the scripts (e.g. nrf24-scanner.py) and the initialization of an nrf24 object (e.g. radio..enter_sniffer_mode(address)?

I didn't noticed this at first and wondered why my script was not working... ;)

marcnewlin commented 8 years ago

Good catch :)

This is an artifact from some older code. Prior to writing this firmware, I built some related functionality with a Teensy and nRF24L01+ in which I had everything in network byte order. The radio.c in this project started as a refactored version of that Teensy code.