Skip to content

set_ipv4_address_ap TypeError: extra positional arguments given #8329

@qingwa2009

Description

@qingwa2009

CircuitPython version

Adafruit CircuitPython 8.2.3 on 2023-08-11; Adafruit Feather ESP32-S3 TFT with ESP32S3

Code/REPL

def startHotPoint():
    print("wifi hot point starting...")
    ip=ipaddress.IPv4Address(HOT_POINT_IP)
    mask=ipaddress.IPv4Address("255.255.255.0")
    #gateway=wifi.radio.ipv4_gateway
    gateway=ipaddress.IPv4Address("192.168.100.1")
    wifi.radio.set_ipv4_address_ap(ip, mask, gateway)
    wifi.radio.start_ap(HOT_POINT_SSID,HOT_POINT_PASSWORD)

Behavior

Traceback (most recent call last):
File "", line 1, in
TypeError: extra positional arguments given

Description

type(ip) == ipaddress.IPv4Address
True
ip
192.168.111.1
mask
255.255.255.0
gateway
192.168.111.1
wifi.radio.set_ipv4_address_ap(ip, mask, gateway)
Traceback (most recent call last):
File "", line 1, in
TypeError: extra positional arguments given

Can you fix this, please!
best regards

Additional information

No response

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions