Skip to content
This repository has been archived by the owner on Jun 16, 2023. It is now read-only.

EspressifApps/EspressifTouchSDK

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

EspressifTouchSDK

To configure network for Esp8266/Esp32 devices, the devices need run on smart-config.

Requirements

  • Xcode 9.2 and later
  • iOS 8 and later

Using the EspressifTouchSDK

CocoaPods

  1. The EspressifTouchSDK is available through CocoaPods. If you have not installed CocoaPods, install CocoaPods:

     sudo gem install cocoapods
     pod setup
    
  2. To install EspressifTouchSDK, simply add the following line to your Podfile:

     pod 'EspressifTouchSDK'
    

Manual

  1. Download EspressifTouchSDK project.
  2. Add the EspTouch folders to your project.

Usage

// 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];

Notes

  1. 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.
  2. The device is connected after startup, Please make sure the network is 2.4G, The device only supports 2.4G.

License

EspressifTouchSDK is released under the MIT license. See LICENSE for details.