Hi there,
I have a Phton and want to connect it to a local WLAN without route to the internet. Additionally I need to use a static IP.
For that goal i installed particle-dev, and particle-cli. I was able to wirte and complie my Code so i got a firmware, which i flashed to the photon via usb.
For the static-IP solution i used this reference from the documentation:
https://docs.particle.io/reference/firmware/photon/#setstaticip
To get my Photon to the WiFi is set the Credentials via:
https://docs.particle.io/reference/firmware/photon/#setcredentials
Also I changed the System-Mode to semi-automatic, to prevent Photon from depending on the Particle-Cloud.
https://docs.particle.io/reference/firmware/photon/#system-modes
So long: Are my ideas right so far?
I ask because this is where the trouble starts:
The Photon tries to connect to a WiFI (even if i call Wifi.off() in setup) immediately. But this fails, most likely because the Static IP isnt set at this point. My question is how to prevent the Photon from automaticaly search for a network but make him do it once the static IP is configured. I even tried with System mode ‘manual’ but this didn’t work.
What am I doing wrong? I can post my code if this helps, but since ANY code fails as discribed, i doubt this will help.
Thanks!