Is it possible to detect the current WiFi SSID?
I have an iOS application that I use to monitor security cameras, open and close gates, turn lights on and off etc, on my small ranch. The iOS client talks to my MacOS X server and uses the Mac as a conduit to my peripherals (via a Teensy, think Arduino, USB interface).
I have my Mac server NAT-ed out and it works great.
I’d like my iOS app to detect the current WiFi SSID and switch to a local address if it is on my ranch network (covers about 1 square mile) and switch to cellular if I’m outside the range.
I could run a local DNS server at home, and have my application servers external DNS point to my router and my local DNS point to the local IP address.
So myapp.mydomain.org is the external address of my router from outside my wireless network (and uses port forwarding to get to my application); and is my local server IP address when used in my home network. I’d rather not setup DNS for this one application.
I could presume my local IP range is unique and try calling it before calling external.
Is it possible to get the name of the WiFi network I’m connected to from within Corona? If so, I could then place my request to the IP based on this information.