Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/lou-lan/smartconfig
SmartConfig ESP8266 with Swift language(Swift 语言编写的 Smart Config UDP 广播给 ESP WiFi 芯片入网程序)
https://github.com/lou-lan/smartconfig
airkiss esp32 esp8266 esptouch smartconfig swift swift3
Last synced: 2 months ago
JSON representation
SmartConfig ESP8266 with Swift language(Swift 语言编写的 Smart Config UDP 广播给 ESP WiFi 芯片入网程序)
- Host: GitHub
- URL: https://github.com/lou-lan/smartconfig
- Owner: lou-lan
- License: mit
- Created: 2016-12-05T14:15:11.000Z (about 8 years ago)
- Default Branch: master
- Last Pushed: 2020-04-27T04:51:40.000Z (over 4 years ago)
- Last Synced: 2024-10-12T14:23:22.950Z (2 months ago)
- Topics: airkiss, esp32, esp8266, esptouch, smartconfig, swift, swift3
- Language: Swift
- Homepage:
- Size: 3.79 MB
- Stars: 35
- Watchers: 4
- Forks: 8
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# SmartConfig
SmartConfig is an ESP board auto connect WiFi demo written in Swift.## Requirements
- iOS 8.0+
- Xcode 8.0+
- Swift 3.0
## Bridge ESPtouch lib
1.Xcode -> Create a new Xcode project -> Single View App.
2.Download lib [https://github.com/EspressifApp/LibEsptouchForIOS](https://github.com/EspressifApp/LibEsptouchForIOS).
3.Move libEsptouch_v0.3.5.3.a, ESPTouchTask.h, ESPTouchResult.h, ESPTouchDelegate.h to your new project.
![](https://github.com/lou-lan/SmartConfig/blob/master/images/1.png)
4.In project group finder, create a new fire, select Objecttive-C file, then select Create Bridging Header.
![](https://github.com/lou-lan/SmartConfig/blob/master/images/2.png)
5.In Demo-Bridging-Header.h file, import lib.
![](https://github.com/lou-lan/SmartConfig/blob/master/images/3.png)
```
#import "ESPTouchTask.h"
#import "ESPTouchResult.h"
#import "ESPTouchDelegate.h"
```
## Hardware ESP8266 NodeMCU Code init.lua Test
```lua
print("Start SmartConfig ...")
wifi.setmode(wifi.STATION)
wifi.startsmart(0,
function(ssid, password)
print(string.format("Success. SSID:%s ; PASSWORD:%s", ssid, password))
print("Back init.lua")
dofile("init.lua")
end
)
```## TODO
[] SwiftUI
[] WiFi 5G