I have an application that is going to be used with a special server that does not support DHCP and is just looking for a TCP client to connect to it at on a specific port. The server has a fixed IP address associated with it. But I don’t see a firmware function which will allow me to set a static IP on the Photon or any IP that is within the 255.255.255.0 mask for this particular server.
This is the idea behind this application. I think the sequence is reasonable.
This application will be preprogrammed with the SSID, Password, and Security Type of this special server (it acts as an access point and server). The Photon app will start off operating in Manual Mode since there is no cloud connection initially (that special server is not connected to the Internet). It is just making a TCP client connection to this special server to gather data. Upon capturing the data required it will clear the credentials, set it to another preprogrammed SSID for a router which will enable it to connect to the Internet. The application will call Spark.connect() when it is ready to connect to the Particle cloud and make its own calls to Spark.process() since it will be set to operate in Manual Mode [SYSTEM_MODE(MANUAL);]. It can then publish the data it collected from the special server, up to the Particle cloud.
But the first part is managing to insure the Photon is in the same IP range as this access point/server so it can make a client connection to the server at the servers fixed IP address and port number.