--- a/src/eric7/Documentation/Source/eric7.MicroPython.Devices.RP2040Devices.html Wed Aug 02 17:22:20 2023 +0200 +++ b/src/eric7/Documentation/Source/eric7.MicroPython.Devices.RP2040Devices.html Thu Aug 03 17:33:07 2023 +0200 @@ -80,6 +80,10 @@ <td>Private slot to flash a MicroPython firmware to the device.</td> </tr> <tr> +<td><a href="#RP2040Device.__resetCountry">__resetCountry</a></td> +<td>Private slot to reset the country of the connected ESP32 device.</td> +</tr> +<tr> <td><a href="#RP2040Device.__resetDevice">__resetDevice</a></td> <td>Private slot to reset the connected device.</td> </tr> @@ -224,6 +228,10 @@ <td>Public method to check the availability of WiFi.</td> </tr> <tr> +<td><a href="#RP2040Device.hasWifiCountry">hasWifiCountry</a></td> +<td>Public method to check, if the device has support to set the WiFi country.</td> +</tr> +<tr> <td><a href="#RP2040Device.isLanConnected">isLanConnected</a></td> <td>Public method to check the LAN connection status.</td> </tr> @@ -339,6 +347,17 @@ <p> Private slot to flash a MicroPython firmware to the device. </p> +<a NAME="RP2040Device.__resetCountry" ID="RP2040Device.__resetCountry"></a> +<h4>RP2040Device.__resetCountry</h4> +<b>__resetCountry</b>(<i></i>) + +<p> + Private slot to reset the country of the connected ESP32 device. +</p> +<p> + The country is the two-letter ISO 3166-1 Alpha-2 country code. This method + resets it to the default code 'XX' representing the "worldwide" region. +</p> <a NAME="RP2040Device.__resetDevice" ID="RP2040Device.__resetDevice"></a> <h4>RP2040Device.__resetDevice</h4> <b>__resetDevice</b>(<i></i>) @@ -354,7 +373,7 @@ Private slot to configure the country of the connected RP2040 device. </p> <p> - The country is the two letter country code. + The country is the two-letter ISO 3166-1 Alpha-2 country code. </p> <a NAME="RP2040Device.__showFirmwareVersions" ID="RP2040Device.__showFirmwareVersions"></a> <h4>RP2040Device.__showFirmwareVersions</h4> @@ -561,7 +580,7 @@ </dl> <a NAME="RP2040Device.connectToLan" ID="RP2040Device.connectToLan"></a> <h4>RP2040Device.connectToLan</h4> -<b>connectToLan</b>(<i>config</i>) +<b>connectToLan</b>(<i>config, hostname</i>) <p> Public method to connect the connected device to the LAN. @@ -573,6 +592,10 @@ configuration for the connection (either the string 'dhcp' for a dynamic address or a tuple of four strings with the IPv4 parameters. </dd> +<dt><i>hostname</i> (str)</dt> +<dd> +host name of the device +</dd> </dl> <dl> <dt>Return:</dt> @@ -588,7 +611,7 @@ </dl> <a NAME="RP2040Device.connectWifi" ID="RP2040Device.connectWifi"></a> <h4>RP2040Device.connectWifi</h4> -<b>connectWifi</b>(<i>ssid, password</i>) +<b>connectWifi</b>(<i>ssid, password, hostname</i>) <p> Public method to connect a device to a WiFi network. @@ -603,6 +626,10 @@ <dd> password needed to connect </dd> +<dt><i>hostname</i> (str)</dt> +<dd> +host name of the device +</dd> </dl> <dl> <dt>Return:</dt> @@ -1112,6 +1139,25 @@ raised to indicate an issue with the device </dd> </dl> +<a NAME="RP2040Device.hasWifiCountry" ID="RP2040Device.hasWifiCountry"></a> +<h4>RP2040Device.hasWifiCountry</h4> +<b>hasWifiCountry</b>(<i></i>) + +<p> + Public method to check, if the device has support to set the WiFi country. +</p> +<dl> +<dt>Return:</dt> +<dd> +flag indicating the support of WiFi country +</dd> +</dl> +<dl> +<dt>Return Type:</dt> +<dd> +bool +</dd> +</dl> <a NAME="RP2040Device.isLanConnected" ID="RP2040Device.isLanConnected"></a> <h4>RP2040Device.isLanConnected</h4> <b>isLanConnected</b>(<i></i>) @@ -1290,7 +1336,7 @@ </dl> <a NAME="RP2040Device.startAccessPoint" ID="RP2040Device.startAccessPoint"></a> <h4>RP2040Device.startAccessPoint</h4> -<b>startAccessPoint</b>(<i>ssid, security=None, password=None, ifconfig=None</i>) +<b>startAccessPoint</b>(<i>ssid, security=None, password=None, hostname=None, ifconfig=None, </i>) <p> Public method to start the access point interface. @@ -1309,6 +1355,10 @@ <dd> password (defaults to None) </dd> +<dt><i>hostname</i> (str (optional))</dt> +<dd> +host name of the device (defaults to None) +</dd> <dt><i>ifconfig</i> (tuple of (str, str, str, str))</dt> <dd> IPv4 configuration for the access point if not default @@ -1348,7 +1398,7 @@ </dl> <a NAME="RP2040Device.writeCredentials" ID="RP2040Device.writeCredentials"></a> <h4>RP2040Device.writeCredentials</h4> -<b>writeCredentials</b>(<i>ssid, password</i>) +<b>writeCredentials</b>(<i>ssid, password, hostname, country</i>) <p> Public method to write the given credentials to the connected device and modify @@ -1364,6 +1414,14 @@ <dd> password needed to authenticate </dd> +<dt><i>hostname</i> (str)</dt> +<dd> +host name of the device +</dd> +<dt><i>country</i> (str)</dt> +<dd> +WiFi country code +</dd> </dl> <dl> <dt>Return:</dt> @@ -1379,7 +1437,7 @@ </dl> <a NAME="RP2040Device.writeLanAutoConnect" ID="RP2040Device.writeLanAutoConnect"></a> <h4>RP2040Device.writeLanAutoConnect</h4> -<b>writeLanAutoConnect</b>(<i>config</i>) +<b>writeLanAutoConnect</b>(<i>config, hostname</i>) <p> Public method to generate a script and associated configuration to connect the @@ -1392,6 +1450,10 @@ configuration for the connection (either the string 'dhcp' for a dynamic address or a tuple of four strings with the IPv4 parameters. </dd> +<dt><i>hostname</i> (str)</dt> +<dd> +host name of the device +</dd> </dl> <dl> <dt>Return:</dt>