How to connect iOS app to a hardware and communicate via WiFi?

Hi all, I would like to know how to build an iOS app that could communicate with an endoscope (camera) via WiFi and project the camera view on the iOS app. Just like how an app called "BeBird" did it.

bebird

Thank you in advance!
I am not sure how the mentioned app has developed their technology, but if you wanted to communicate with a device for networking or data feed purposes you could connect to an adhoc Wi-Fi network the device is broadcasting with the NEHotspotConfiguration and NEHotspotConfigurationManager APIs. The NEHotspotConfiguration API would create the Wi-Fi network configuration and then NEHotspotConfigurationManager would actually apply it to you device to associate to the adhoc Wi-Fi network.


Matt Eaton
DTS Engineering, CoreOS
meaton3@apple.com
Thanks a lot Matt! I will give it a shot
Hi Matt! I did follow your approach and I've successfully establish the connection by using both NEHotspotConfiguration and NEHotspotConfigurationManager. However, how can I actually read/retrieve the data that's being broadcasted from the device (e.g. BeBird's endoscope) and present it in the iOS APP?

Hi Matt! I did follow your approach and I've successfully establish the connection by using both NEHotspotConfiguration and NEHotspotConfigurationManager.

Excellent. Glad that worked for you.

However, how can I actually read/retrieve the data that's being broadcasted from the device

Reading the data from the device would be dependent on how the device provides the data. If there is a connection listener that you need to create a TCP/UDP connection to, you would need the IP of the device and the listening port and you could attempt to create a connection through the listener. Discovering a Bonjour service is also another great way to not have to look for an IP, but instead, perform service discovery and then connect to your listener through a service endpoint.


Matt Eaton
DTS Engineering, CoreOS
meaton3@apple.com
How to connect iOS app to a hardware and communicate via WiFi?
 
 
Q