Is it possible to connect two ESP32's to each other without having to specify their unique mac addresses in the code?
For example, have a master connect to the first slave device it sees.
I will be setting up many pairs of the ESP32's and more than 1 pair will never be in proximity of each other.
My application: wirelessly send a continuous stream of bytes solely from a master to a slave.
It would not be an efficient process if I have to code each pair uniquely, specifying their unique mac addresses in their respective code.
I would like to put a standard code on all the masters, and a standard code on all the slaves, if possible.
Yes it is possible to do it without specifying a unique MAC address. There is only one little problem they will not work and could possibly cause some interesting network problems. This response is to help you get started in solving your problem, not solve it for you.
Good Luck & Have Fun!
Gil
gilshultz:
Yes it is possible to do it without specifying a unique MAC address. There is only one little problem they will not work and could possibly cause some interesting network problems.
Congratulations on contradicting yourself - such an effective way to teach noobs...
That being said, isn't it possible to have the master setup as an access point so that the other can scan for a given SSID and connect without a MAC address or password?
Search for "locally managed mac address" to see which address ranges which can be used.
E.g. first hex byte should end in x6, xA or xE.
Like above address starts with 0xB6.