so I'm a Pi newbie and would love if someone can give me some hints on this. What I have currently:
- The Pi will control a robot that I have built. I have built a bunch of python functions that interact with the robot using GPIO pins. The program also sends logging data to a database I've created on the internet (meaning it needs to be connected to the internet, but currently this is hardcoded in the code, username and passwd for wpa2). So, the core logic of the program itself is completed,
Here is my issue/troubles now with Rpi:
I want this to be controlled from an app (Android/Ios) I'm building. So, I just want to plug in my raspberry pi to a power source and then turn on my app and connect to my raspberry pi with bluetooth. Then once it's connected through bluetooth, from the app, you can connect the raspberry pi to the internet as well. From then on, I basically can send data to my raspberry pi to do something using my python functions. So, basically:
1.) How do I make the pi completely discoverable and be able to connect to bluetooth through my phone.
2.) Once connected, provide the user option to input custom username and password for the wifi, so rpi is also connected to wifi after
I think I've seen many place where this is done, but I cannot for the love of god, find any guides to get me there. I'm just frustrated cause I've got the main parts in for my robot, but I cannot send this out to anyone else since everything is relying on the internet and right now the wifi credentials are hardcoded. Any help or if there is any other solutions, please let me know...any help appreciated :)