WIFI station and AP (3.0 branch only)
Connect to an Access Point:ssid = " "
password = " " print "SSID:" textbox ssid print "PASSWORD:" textbox password button "Connect", [connect_to_ap] wait [connect_to_ap] wifi.connect(ssid, password) end |
Turn the ESP in to an access point:ssid = " "
password = " " print "SSID:" textbox ssid print "PASSWORD:" textbox password button "Make AP", [create_ap] wait [create_ap] wifi.ap(ssid, password) end |