318 <td><a href="#CircuitPythonDevice.supportsLocalFileAccess">supportsLocalFileAccess</a></td> |
318 <td><a href="#CircuitPythonDevice.supportsLocalFileAccess">supportsLocalFileAccess</a></td> |
319 <td>Public method to indicate file access via a local directory.</td> |
319 <td>Public method to indicate file access via a local directory.</td> |
320 </tr> |
320 </tr> |
321 <tr> |
321 <tr> |
322 <td><a href="#CircuitPythonDevice.writeCredentials">writeCredentials</a></td> |
322 <td><a href="#CircuitPythonDevice.writeCredentials">writeCredentials</a></td> |
323 <td></td> |
323 <td>Public method to write the given credentials to the connected device and modify the start script to connect automatically.</td> |
324 </tr> |
324 </tr> |
325 <tr> |
325 <tr> |
326 <td><a href="#CircuitPythonDevice.writeLanAutoConnect">writeLanAutoConnect</a></td> |
326 <td><a href="#CircuitPythonDevice.writeLanAutoConnect">writeLanAutoConnect</a></td> |
327 <td>Public method to generate a script and associated configuration to connect the device to the LAN during boot time.</td> |
327 <td>Public method to generate a script and associated configuration to connect the device to the LAN during boot time.</td> |
328 </tr> |
328 </tr> |
1608 </dl> |
1608 </dl> |
1609 <a NAME="CircuitPythonDevice.writeCredentials" ID="CircuitPythonDevice.writeCredentials"></a> |
1609 <a NAME="CircuitPythonDevice.writeCredentials" ID="CircuitPythonDevice.writeCredentials"></a> |
1610 <h4>CircuitPythonDevice.writeCredentials</h4> |
1610 <h4>CircuitPythonDevice.writeCredentials</h4> |
1611 <b>writeCredentials</b>(<i>ssid, password, hostname, country</i>) |
1611 <b>writeCredentials</b>(<i>ssid, password, hostname, country</i>) |
1612 |
1612 |
|
1613 <p> |
|
1614 Public method to write the given credentials to the connected device and modify |
|
1615 the start script to connect automatically. |
|
1616 </p> |
|
1617 <dl> |
|
1618 |
|
1619 <dt><i>ssid</i> (str)</dt> |
|
1620 <dd> |
|
1621 SSID of the network to connect to |
|
1622 </dd> |
|
1623 <dt><i>password</i> (str)</dt> |
|
1624 <dd> |
|
1625 password needed to authenticate |
|
1626 </dd> |
|
1627 <dt><i>hostname</i> (str)</dt> |
|
1628 <dd> |
|
1629 host name of the device |
|
1630 </dd> |
|
1631 <dt><i>country</i> (str)</dt> |
|
1632 <dd> |
|
1633 WiFi country code (unused) |
|
1634 </dd> |
|
1635 </dl> |
|
1636 <dl> |
|
1637 <dt>Return:</dt> |
|
1638 <dd> |
|
1639 tuple containing a flag indicating success and an error message |
|
1640 </dd> |
|
1641 </dl> |
|
1642 <dl> |
|
1643 <dt>Return Type:</dt> |
|
1644 <dd> |
|
1645 tuple of (bool, str) |
|
1646 </dd> |
|
1647 </dl> |
1613 <a NAME="CircuitPythonDevice.writeLanAutoConnect" ID="CircuitPythonDevice.writeLanAutoConnect"></a> |
1648 <a NAME="CircuitPythonDevice.writeLanAutoConnect" ID="CircuitPythonDevice.writeLanAutoConnect"></a> |
1614 <h4>CircuitPythonDevice.writeLanAutoConnect</h4> |
1649 <h4>CircuitPythonDevice.writeLanAutoConnect</h4> |
1615 <b>writeLanAutoConnect</b>(<i>config, hostname</i>) |
1650 <b>writeLanAutoConnect</b>(<i>config, hostname</i>) |
1616 |
1651 |
1617 <p> |
1652 <p> |