Skip to content

wifi.radio.tx_power does not support float #6559

Closed
@askpatrickw

Description

@askpatrickw

The Wemos docs say to use 8.5db to work around the WIFI connect issue.

Workaround

If you use 8 or 9 you can still connect.

Code/REPL

>>> import wifi
>>> wifi.radio.tx_power = 8.5
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
TypeError: can't convert float to int
>>> wifi.radio.tx_power = 8
>>> wifi.radio.connect(SSID, PASSWD)
>>> wifi.radio.ipv4_address
192.168.1.53

Behavior

TypeError: can't convert float to int

Description

No response

Additional information

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions