I am trying to set a staticIP on my Photon. Trying to communicate with a Python TCP Client and using my Photon as a TCP Server.
The error I keep running into is:
“error: statement cannot resolve address of overloaded function
IPAddress myAddress(##,##,##,##)”
RAW Form:
/workspace//src/tcp_wifi.cpp: In function ‘void setup()’:
/workspace//src/tcp_wifi.cpp:25:21: error: statement cannot resolve address of overloaded function
IPAddress myAddress(##, ##, ##, ##);
^
If you look at the line number provided in the error message and not at the code excerpt IPAddress myAddress(##,##,##,##) you’ll notice that the actual problem is this line
WiFi.useStaticIP;
this should be
WiFi.useStaticIP();
BTW, to do anything with the WiFi module it needs to be powered, so WiFi.on() should be called before WiFi.setStaticIP()