Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Can't set hostname in AP mode #8906

Closed
@LucaDevelop

Description

@LucaDevelop

Board: Raspberry Pico W
Firmware file name: rp2-pico-w-20220713-unstable-v1.19.1-129-g5bf376563.uf2

I can't set the "hostname" param with config() function.

This works (without hostname param):

import network
wlan = network.WLAN(network.AP_IF)
wlan.config(essid='somessid', key="1234567890")
wlan.active(True)

This doesn't work:

import network
wlan = network.WLAN(network.AP_IF)
wlan.config(essid='somessid', key="1234567890", hostname="somehostname")
wlan.active(True)

and prints this error:

Traceback (most recent call last):
  File "<stdin>", line 3, in <module>
ValueError: unknown config param

I've tried with "dhcp_hostname" also, same result.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions