Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Mobile Development
  3. iOS
  4. Force change in Wifi connection

Force change in Wifi connection

Scheduled Pinned Locked Moved iOS
javascriptiossysadminhardwarequestion
7 Posts 2 Posters 16 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • S Offline
    S Offline
    StampedePress
    wrote on last edited by
    #1

    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!!

    A 1 Reply Last reply
    0
    • S StampedePress

      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!!

      A Offline
      A Offline
      Afzaal Ahmad Zeeshan
      wrote on last edited by
      #2

      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 !~

      S 1 Reply Last reply
      0
      • A Afzaal Ahmad Zeeshan

        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 !~

        S Offline
        S Offline
        StampedePress
        wrote on last edited by
        #3

        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!

        A 1 Reply Last reply
        0
        • S StampedePress

          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!

          A Offline
          A Offline
          Afzaal Ahmad Zeeshan
          wrote on last edited by
          #4

          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 !~

          S 1 Reply Last reply
          0
          • A Afzaal Ahmad Zeeshan

            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 !~

            S Offline
            S Offline
            StampedePress
            wrote on last edited by
            #5

            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!

            A 1 Reply Last reply
            0
            • S StampedePress

              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!

              A Offline
              A Offline
              Afzaal Ahmad Zeeshan
              wrote on last edited by
              #6

              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 !~

              S 1 Reply Last reply
              0
              • A Afzaal Ahmad Zeeshan

                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 !~

                S Offline
                S Offline
                StampedePress
                wrote on last edited by
                #7

                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.

                1 Reply Last reply
                0
                Reply
                • Reply as topic
                Log in to reply
                • Oldest to Newest
                • Newest to Oldest
                • Most Votes


                • Login

                • Don't have an account? Register

                • Login or register to search.
                • First post
                  Last post
                0
                • Categories
                • Recent
                • Tags
                • Popular
                • World
                • Users
                • Groups