guild icon
Toit
#ESPnow pairing
Thread channel in help
kaxori
kaxori 06/12/2025 07:27 PM
Before sending to a specific MAC address, pairing must be performed. Repeated pairing will result in an error message. I haven't found a function yet to check whether pairing has already occurred. For this reason, I first delete a possible previous pairing and then create it again.
Don't find the solution optimal and look for a better one. Does anyone already have a good implementation?
floitsch
floitsch 06/13/2025 02:52 PM
We could provide a function to detect whether a peer already exists.
I would have just made a peers set that contains the addresses of the peers. Wouldn't that work?
kaxori
kaxori 06/13/2025 03:05 PM
I think yes.

In the meantime, I've implemented a "device address book" with label and mac. If it does contain the required label then the device is already known and peered.
👍1
3 messages in total