I've searched google and only found the MultipeerConnectivity framework in iOS but I don't know how I could make it work for my specific case.
The flow of what I want to do is like this:
- Enable personal hotspot in iOS
- Connect to hotspot from a raspberry pie
- Once client is connected, send a message string from the iOS app.
Assuming that the raspberry pie connection is already sorted out (We're using a static SSID and Password for the hotspot)
The questions that come up are:
- Which framework should I use (assuming there is one already)?
- do I need to explicitly advertise the iOS device from the app?
- How do I get notified when the raspberry connects to the phone?
- How do I send a message to the connected client?