client/server: to test
This commit is contained in:
commit
55603f969e
2 changed files with 41 additions and 0 deletions
9
wifi_server.lua
Normal file
9
wifi_server.lua
Normal file
|
@ -0,0 +1,9 @@
|
|||
-- Initialize the Wi-Fi server
|
||||
wifi.setmode(wifi.STATIONAP)
|
||||
wifi.sta.config("SachamamaGoingHome", "GoFoundIt")
|
||||
wifi.sta.connect()
|
||||
wifi.sta.http.start()
|
||||
|
||||
wifi.sta.http.on("receive", function(conn, payload)
|
||||
print(payload)
|
||||
end)
|
Loading…
Add table
Add a link
Reference in a new issue