Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

My Learning Project of Smartconfig for ESP8266-WiFi

Notifications You must be signed in to change notification settings

456vv/esptouch-go

Folders and files

NameName
Last commit message
Last commit date

Latest commit

History

29 Commits

Repository files navigation

ESPTouch-Go-SDK

My Learning Project of Smartconfig for ESP8266-WiFi

Looking for my study notes? see: https://www.imsry.cn/posts/bf40eeb6.html

Finally. the sdk package born up. ( Code is migrated from https://github.com/EspressifApp/EsptouchForAndroid )

该库做了一些修改,原库来自: https://github.com/haowanxing/esptouch-go

感谢作者(haowanxing)的辛苦!

SDK-Usage:

package main
import (
	"github.com/456vv/esptouch-go"
	"log"
	"net"
)
func main() {
	task, err := esptouch.NewEsptouchTask([]byte("My-AP"), []byte("400300200"), []byte{0x4c, 0x50, 0x77, 0x73, 0x37, 0xb0}, net.ParseIP("192.168.1.2"))
	if err != nil {
		panic(err)
	}
	defer task.Close()
 // false for multicast, true for broadcast
	task.SetBroadcast(false)
	
	log.Println("SmartConfig run.")
 // smartconfig device num: 1
	rList := task.ExecuteForResults(1)
	log.Println("Finished", rList)
	return
}

About

My Learning Project of Smartconfig for ESP8266-WiFi

Topics

Resources

Stars

Watchers

Forks

Languages

  • Go 100.0%

AltStyle によって変換されたページ (->オリジナル) /