Force change in Wifi connection
-
I have a project that has all kinds of sensors collecting data and sending it to a raspberry pi which saves everything. Now I want to make an interface to read that collected data in an easy and clear way. I was wondering if the iPhone is able to do this before getting too deep into building an app. Could my iPhone app change the wifi network I'm connected to so that it could connect to the ad hoc network I have running from my pi? This way i can just hit a single button on my iPhone app (if I'm in range of the pi's network) and connect to that network, access the collected data and display it in a nice easy to ready way. It'd be a great way to view my data, now I have to manually switch networks, type in IP addresses and it's a real pain. I'm hoping to build my app using ionic and angular. If anyone has any guidance I'm all ears!!
-
I have a project that has all kinds of sensors collecting data and sending it to a raspberry pi which saves everything. Now I want to make an interface to read that collected data in an easy and clear way. I was wondering if the iPhone is able to do this before getting too deep into building an app. Could my iPhone app change the wifi network I'm connected to so that it could connect to the ad hoc network I have running from my pi? This way i can just hit a single button on my iPhone app (if I'm in range of the pi's network) and connect to that network, access the collected data and display it in a nice easy to ready way. It'd be a great way to view my data, now I have to manually switch networks, type in IP addresses and it's a real pain. I'm hoping to build my app using ionic and angular. If anyone has any guidance I'm all ears!!
You want your application to perform a system-level change of network connection? I am not an Apple developer but as far as I know Apple leaves very little space for open developers to create these applications. Following are a few threads where you can see how to detect the network changes, but how to apply these changes would be difficult. How to check for an active Internet connection on iOS or OSX? - Stack Overflow[^] c# - A Method with 2 Kind of Return Type - Stack Overflow[^] Finally, if you just want to connect to the Raspberry Pi, why don't you connect it to the same network? Subnetting may help in this matter.
The shit I complain about It's like there ain't a cloud in the sky and it's raining out - Eminem ~! Firewall !~
-
You want your application to perform a system-level change of network connection? I am not an Apple developer but as far as I know Apple leaves very little space for open developers to create these applications. Following are a few threads where you can see how to detect the network changes, but how to apply these changes would be difficult. How to check for an active Internet connection on iOS or OSX? - Stack Overflow[^] c# - A Method with 2 Kind of Return Type - Stack Overflow[^] Finally, if you just want to connect to the Raspberry Pi, why don't you connect it to the same network? Subnetting may help in this matter.
The shit I complain about It's like there ain't a cloud in the sky and it's raining out - Eminem ~! Firewall !~
Hi Afzaal, Thanks for the reply, I was afraid of that. It's a unique situation for sure, my Raspberry pi is in the shed and away from any Ethernet or wifi connections. Hmm, I'll have to think which is more convenient manually switching wifi networks and use the network check you provided the link for or getting a wifi extender for the pi and connecting the pi to my router. I may try both. See what's easier. Thanks!
-
Hi Afzaal, Thanks for the reply, I was afraid of that. It's a unique situation for sure, my Raspberry pi is in the shed and away from any Ethernet or wifi connections. Hmm, I'll have to think which is more convenient manually switching wifi networks and use the network check you provided the link for or getting a wifi extender for the pi and connecting the pi to my router. I may try both. See what's easier. Thanks!
StampedePress wrote:
manually switching wifi networks
You can however, still show a popup, a very friendly one, to guide the user to go the settings and select the proper network.
The shit I complain about It's like there ain't a cloud in the sky and it's raining out - Eminem ~! Firewall !~
-
StampedePress wrote:
manually switching wifi networks
You can however, still show a popup, a very friendly one, to guide the user to go the settings and select the proper network.
The shit I complain about It's like there ain't a cloud in the sky and it's raining out - Eminem ~! Firewall !~
Yea that sounds like a good alternative. Just thought of this option too, what about just connecting to the Rasp Pi via Bluetooth. I believe I would just have to enable connectivity to the device before hand and then I could try to use that to move data back and forth. I haven't used it before but would be fun to try. I wonder if there are any potential restrictions there. Thanks!
-
Yea that sounds like a good alternative. Just thought of this option too, what about just connecting to the Rasp Pi via Bluetooth. I believe I would just have to enable connectivity to the device before hand and then I could try to use that to move data back and forth. I haven't used it before but would be fun to try. I wonder if there are any potential restrictions there. Thanks!
Connecting Bluetooth of iPhone to a standard Bluetooth? Are you sure that would work?
The shit I complain about It's like there ain't a cloud in the sky and it's raining out - Eminem ~! Firewall !~
-
Connecting Bluetooth of iPhone to a standard Bluetooth? Are you sure that would work?
The shit I complain about It's like there ain't a cloud in the sky and it's raining out - Eminem ~! Firewall !~
No idea if that would work, I've briefly read about limitations with apple products connecting to Bluetooth devices, in your experience what is the safest / most reliable Bluetooth version to use. The Raspberry Pi I imagine is flexible, and it would be on me to program that end to serve the Bluetooth side properly. But I'm new to all this so I'm very interested in hearing pros and cons to my idea.