I have several photon 1s connected to a local cloud (using the Brewskey fork), and am hoping to do the same with some Photon 2s. I am working on modifying the server to get a UDP port open, but the first challenge I am running into is that I cannot get the Photon 2 itself to change the server host.
After running:
particle keys server ../spark-server/data/default_key.pub.pem --host 192.168.X.X --port 5684 -v
particle keys doctor [id]
The output from particle keys address still shows it pointing at the Particle server:
udp://$id.udp.particle.io:5684
As compared to the output from particle keys address on one of my photon 1s that does connect to the local cloud:
tcp://192.168.X.X:5683
There is a –deviceType tag for particle keys server, but it doesn’t include an option for photon2. I tried the p2 option, but that didn’t seem to make a difference.
Make sure your device is connected to your computer: Unknown device type photon2. Use one of core, gcc, photon, p1, electron, esp32, argon, boron, xenon, esomx, asom, bsom, xsom, b5som, tracker, trackerm, raspi, p2, msom, electron2, tachyon, linux, oak, duo, bluz
Am I missing something in my commands?
Are the Photon 2s blocked from changing their server ip?
Any help would be appreciated!