Hi, my ultimate goal is to have two photon boards to communicate with each other wirelessly, without the use of any other devices other than the two boards (e.g. no external AP).
My approach is to connect photon 1 to photon 2’s SoftAP, and have them communicate via TCP.
I encountered the problem that photon 2, while in listening mode (SoftAP mode), doesn’t have an IP address (WiFi.localIP() outputs 0.0.0.0), and without an IP address, there can’t be TCP communication.
It is now my goal to assign an IP address for photon 2, whilst it being in listening mode. I tried setStaticIP() and useStaticIP(), but they are for assigning static IP when you connect to another network, so they are not what I need.
How do I assign an IP for a photon in listening mode so that it can communicate with another photon via TCP? Or, what might be some work-arounds to achieve my ultimate goal?