Add nodemcu-uploader
This commit is contained in:
parent
21bccbcbe3
commit
3314850e15
3 changed files with 9 additions and 0 deletions
3
.gitmodules
vendored
3
.gitmodules
vendored
|
@ -4,3 +4,6 @@
|
|||
[submodule "extern/nodemcu-telnet-uploader"]
|
||||
path = extern/nodemcu-telnet-uploader
|
||||
url = https://github.com/balu-/nodemcu-telnet-uploader
|
||||
[submodule "extern/nodemcu-uploader"]
|
||||
path = extern/nodemcu-uploader
|
||||
url = https://github.com/kmpm/nodemcu-uploader
|
||||
|
|
1
extern/nodemcu-uploader
vendored
Submodule
1
extern/nodemcu-uploader
vendored
Submodule
|
@ -0,0 +1 @@
|
|||
Subproject commit cd5583310a68485132a867ff061121afd5df9295
|
|
@ -16,6 +16,10 @@ wifiConfig.stationPointConfig = {}
|
|||
wifiConfig.stationPointConfig.ssid = "Scalar24" -- Name of the WiFi network you want to join
|
||||
wifiConfig.stationPointConfig.pwd = "Fb274Gh@12G1" -- Password for the WiFi network
|
||||
|
||||
wifiConfig.mDNS = {}
|
||||
wifiConfig.mDNS.hostname = "rvoots-nameplate" -- default hostname
|
||||
wifiConfig.mDNS.description = "Ryan Voot's name plate at his desk" -- what avahi-browse will describe this as
|
||||
|
||||
-- Tell the chip to connect to the access point
|
||||
|
||||
wifi.setmode(wifiConfig.mode)
|
||||
|
@ -55,6 +59,7 @@ end
|
|||
-- Start the APs once we hit here
|
||||
wifi.ap.config(wifiConfig.accessPointConfig)
|
||||
wifi.sta.config(wifiConfig.stationPointConfig.ssid, wifiConfig.stationPointConfig.pwd)
|
||||
mdns.register(wifiConfig.mDNS.hostname, wifiConfig.mDNS)
|
||||
wifiConfig = nil
|
||||
collectgarbage()
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue