To configure network for Esp8266/Esp32 devices, the devices need run on smart-config.
- Xcode 9.2 and later
- iOS 8 and later
-
The EspressifTouchSDK is available through CocoaPods. If you have not installed CocoaPods, install CocoaPods:
sudo gem install cocoapods pod setup
-
To install EspressifTouchSDK, simply add the following line to your Podfile:
pod 'EspressifTouchSDK'
- Download EspressifTouchSDK project.
- Add the EspTouch folders to your project.
// Start config network
ESPTouchTask *esptouchTask = [[ESPTouchTask alloc]initWithApSsid:apSsid andApBssid:apBssid andApPwd:apPwd];
// set delegate
[esptouchTask setEsptouchDelegate:self._esptouchDelegate];
// Set config mode
[esptouchTask setPackageBroadcast:broadcast];
// Results
NSArray *esptouchResults = [esptouchTask executeForResults:taskCount];
- You need to open the location permission to get Wi Fi information. Please go to settings - > Privacy - > location service to open the [esptouch] location service.
- The device is connected after startup, Please make sure the network is 2.4G, The device only supports 2.4G.
EspressifTouchSDK is released under the MIT license. See LICENSE for details.