src/eric7/MicroPython/Devices/RP2040Devices.py

branch
mpy_network
changeset 9841
3c6118eee33e
parent 9838
d6b87ef03c13
child 9843
72e8270a5940
equal deleted inserted replaced
9840:d41ee69fa69b 9841:3c6118eee33e
1078 repr(password), 1078 repr(password),
1079 ifconfig, 1079 ifconfig,
1080 repr(country if country else "XX"), 1080 repr(country if country else "XX"),
1081 ) 1081 )
1082 elif self._deviceData["wifi_type"] == "picowireless": 1082 elif self._deviceData["wifi_type"] == "picowireless":
1083 if ifconfig:
1084 return (
1085 False,
1086 self.tr(
1087 "Pico Wireless does not support setting the IPv4 parameters of"
1088 " the WiFi access point."
1089 ),
1090 )
1091
1083 # AP is fixed at channel 6 1092 # AP is fixed at channel 6
1084 command = """ 1093 command = """
1085 def start_ap(ssid, password): 1094 def start_ap(ssid, password):
1086 import picowireless as pw 1095 import picowireless as pw
1087 1096
1148 """ 1157 """
1149 elif self._deviceData["wifi_type"] == "picowireless": 1158 elif self._deviceData["wifi_type"] == "picowireless":
1150 return ( 1159 return (
1151 [], 1160 [],
1152 self.tr( 1161 self.tr(
1153 "Showing connected clients is not supported for 'pico wireless'." 1162 "Pico Wireless does not support reporting of connected clients."
1154 ), 1163 ),
1155 ) 1164 )
1156 else: 1165 else:
1157 return super().checkInternet() 1166 return super().checkInternet()
1158 1167

eric ide

mercurial