mirror of
https://github.com/clockworkpi/LauncherGoDev.git
synced 2026-03-20 02:42:50 +01:00
fix gotime TimeTicker issue,use sqlite3 to store wifi password
This commit is contained in:
@@ -71,6 +71,20 @@ func InitSql() {
|
||||
log.Printf("%q: %s\n",err,sqlStmt)
|
||||
return
|
||||
}
|
||||
|
||||
sqlStmt = `
|
||||
CREATE TABLE IF NOT EXISTS wifi (
|
||||
id integer PRIMARY KEY,
|
||||
essid text NOT NULL,
|
||||
pass text NOT NULL
|
||||
);
|
||||
`
|
||||
_,err = db.Exec(sqlStmt)
|
||||
if err != nil {
|
||||
log.Printf("%q: %s\n",err,sqlStmt)
|
||||
return
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
func main() {
|
||||
|
||||
Reference in New Issue
Block a user