Open timmbogner opened 5 months ago
That looks excellent. We could use a macro like the ones at the top of fdrs_lora.h
#define LZ(a) (" 0x" + String(a < 16) ? "0" : "") + String(a, HEX))
Something like that and then just insert LZ(5) or whatever in the code Great idea!
@aviateur17 Hey so this is something that has stumped us both before, but your irrigation code gave me an idea. Here's the proof of concept I wrote:
I applied it to the gateway's ESP-NOW functions and it seems to work. However, when I started expanding it further I realized there are a lot of spots where we'd use this, especially in LoRa. I think we can probably transform it into a reusable function to keep things neat. What do you think?