mirror of
https://github.com/lumapu/ahoy.git
synced 2025-06-03 03:01:40 +02:00
switched to dynamic payload mode, added a pretender
This commit is contained in:
parent
c0abc8daae
commit
122e4567b1
5 changed files with 168 additions and 10 deletions
18
tools/rpi/discover/common.hpp
Normal file
18
tools/rpi/discover/common.hpp
Normal file
|
@ -0,0 +1,18 @@
|
|||
#include <string>
|
||||
#include <stdint.h>
|
||||
|
||||
using namespace std;
|
||||
|
||||
/** Convert given 5-byte address to human readable hex string */
|
||||
string prettyPrintAddr(string &a);
|
||||
|
||||
|
||||
/** Convert a Hoymiles inverter/DTU serial number into its
|
||||
* corresponding NRF24 address byte sequence (5 bytes).
|
||||
*
|
||||
* The inverters use a BCD representation of the last 8
|
||||
* digits of their serial number, in reverse byte order,
|
||||
* followed by \x01.
|
||||
*/
|
||||
string serno2shockburstaddrbytes(uint64_t n);
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue