I have a somewhat similar setup and question. I have an RPi Zero W set up as a hotspot (not connected to the internet) running my Blynk local server. Using my iphone, when connected to the wifi hotspot I can control the Blynk app. However, if I try to use mobile/cellular data by updating my wifi configuration settings (remove router IP), I lose connectivity to the local server. Is there any way to connect to the Blynk server on the wifi hotspot while using cellular data?
My intention is to use the RPi / Blynk in my car so a central wifi router is not possible.
Thanks
Just for clarification: My goal is have an rPi in my car running the Blynk server with a hotspot, and to be connected via wifi to the rPi, but have all cellular data routed through GSM. Please disregard the statement about removing the router IP. I am able to achieve connecting to both by using Apple Wifi Assist, and turning off cellular data for Blynk. This routes Blynk data to Wifi, even if cellular data is prioritized. I am able to ssh into the rPi, as well as ping my phone from the rPi. Now comes the next issue. When I run my Blynk python script on the rPi, I get this error:
Traceback (most recent call last):
File “automoc.py”, line 147, in
blynk.run()
File “/usr/local/lib/python2.7/dist-packages/BlynkLib.py”, line 252, in run
self.process(data)
File “/usr/local/lib/python2.7/dist-packages/BlynkLib.py”, line 213, in process
self.emit("int_"+args[1], args[2:])
IndexError: list index out of range
This does not happen when my phone prioritizes wifi data over cellular. Any ideas?
Bumping this post, has anyone with Python expertise seen this issue? I am constantly getting kicked out of my python script with the following error:
blynk.run()
File “/usr/local/lib/python2.7/dist-packages/BlynkLib.py”, line 252, in run
self.process(data)
File “/usr/local/lib/python2.7/dist-packages/BlynkLib.py”, line 213, in process