Start Back Next End
  
ZBasic System Library
ZBasic Microcontrollers
50
Wifi.SetConfig
Type
Subroutine
Invocation
Wifi.SetConfig(ssid)
Wifi.SetConfig(ssid, passwd)
Wifi.SetConfig(ssid, passwd, macAddr)
Parameter
Method
Type
Description
ssid
ByVal
String
The access point SSID (30 characters maximum).
passwd
ByVal
String
The access point password (62 characters maximum).
macAddr
ByRef
Byte
The access point MAC address.
Discussion
This subroutine sets the parameters of the access point to which to connect.  If a WiFi connection has
already been established, it is automatically disconnected.
The first form shown above is for connecting to an open access point, i.e. one that has no password.  The
third form is used when multiple access points are available having the same SSID and it is desired to
connect to a specific one, as distinguished by the MAC address.
Previous page Top Next page