Skip to content

My Learning Project of Smartconfig for ESP8266-WiFi

License

Notifications You must be signed in to change notification settings

quwanxing/esptouch-go

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 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

SDK-Usage:

package main

import (
	"github.com/haowanxing/esptouch-go"
	"log"
)

func main() {
	task, err := esptouch.NewEsptouchTask([]byte("My-AP"), []byte("400300200"), []byte{0x4c, 0x50, 0x77, 0x73, 0x37, 0xb0})
	if err != nil {
		panic(err)
	}
    // false for multicast, true for broadcast
	task.SetPackageBroadcast(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

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Go 100.0%