Skip to content

SPWF01SA Module

This Zerynth module supports one tcp socket at a time (multiple sockets in future updates) in client and server mode (datasheet).

No select support is provided. For WIFI security, only WPA2 is currently supported.

Usage example:

import streams
from wireless import wifi
from stm.spwf01sa import spwf01sa

streams.serial()

# connect to a wifi network
try:
    spwf01sa.init(SERIAL1,D16) # specify which serial port will be used and which RST pin

    print("Establishing Link...")
    wifi.link("Network SSID",wifi.WIFI_WPA2,"Password")
    print("Ok!")
except Exception as e:
    print(e)