NSNetServiceBrowser to find any device on network

2019-08-03 03:50发布

问题:

As per the title:

I am wondering how IOS is able to find devices on the network that are non-bonjour. Specifically I need to find a control device that will in the future have the appropriate Bonjour announce code but there are tons of these devices already out in consumers hands and firmware updates are not an option.

How then can I use Bonjour or NSNetServiceBrowser or some other library that is compatible with the apple store to discover on the network older devices?

IE - in android I pinged all available IPs on the network and read the arp table for the proprietary mac prefix. This is, as I understand, not allowed on the mac store standards as I'd be using a library that is "not public"

I'm quite new to IOS programing and would Like any advice or help. Thanks?