iOS: Discover Wifi Network Broadcast by Appliance

I'm prototyping an Arduino board to communicate with an iOS app as a first step towards building a HomeKit/Internet of Things-enabled appliance.

For the initial setup, I'm looking to do the following (similar to how some Nest and Phillips Hue products work):

  • Step 1: The Arduino board broadcasts itself as an Wifi network
  • Step 2: The iOS app searches for available networks, discovers and connects to the Arduino's network
  • Step 3: The user inputs his or her home router's SSID/Password in the app.
  • Step 4: The app transmits this data to the Arduino board and the Arduino board connects to the user's home router.
  • For step 2 through 4, I'd like to know - which iOS library would be appropriate for doing this?

    I've tried some samples using Bonjour, CaptiveNetwork, etc. I'd like to know what you guys think.

    Thank you.

    链接地址: http://www.djcxy.com/p/63456.html

    上一篇: 连接到一个wifi网络,但无法访问互联网

    下一篇: iOS:按设备发现Wifi网络广播