OK the solution is set up Raspberry PI is wifi access point using hostapd and dnsmasq. Note. This is only needed if there is no wifi you can log into. It lets the rPI be the hotspot. There are lots of posts searchable on google telling how.
Also there is a great python interpreter for the iPhone called pythonista.It has full internet access plus lots of access to the phone capabilities, accelerometers, draw pretty pictures on the screen. An iPhone python script can:
- Log onto the Raspberry PI with ssh
- Start a brickPi program (I’m using python scripts)
- Talk to that program to run the robot
- All based on whatever I want as input that I want to program on the iPhone. Buttons to tap, tilt, whatever.
iPhone programming just reached a whole new level. After buying pythonista I wrote a simple accelerometer interface script that drew a picture on the screen that always pointed up no matter how you tilted the phone, in about 10 lines of python code.