94 <li>scanNetworks: scan for available WiFi networks</li> |
94 <li>scanNetworks: scan for available WiFi networks</li> |
95 <li>deactivateInterface: deactivate a WiFi interface</li> |
95 <li>deactivateInterface: deactivate a WiFi interface</li> |
96 <li>startAccessPoint: start an access point</li> |
96 <li>startAccessPoint: start an access point</li> |
97 <li>stopAccessPoint: stop the access point</li> |
97 <li>stopAccessPoint: stop the access point</li> |
98 <li>getConnectedClients: get a list of connected WiFi clients</li> |
98 <li>getConnectedClients: get a list of connected WiFi clients</li> |
|
99 <li>getSecurityModes: get a list of supported security modes</li> |
|
100 <li>enableWebrepl |
|
101 <li>disableWebrepl |
99 </ul> |
102 </ul> |
100 </p> |
103 </p> |
101 <p> |
104 <p> |
102 Supported Bluetooth commands are: |
105 Supported Bluetooth commands are: |
103 <ul> |
106 <ul> |
242 <td><a href="#BaseDevice.deviceName">deviceName</a></td> |
245 <td><a href="#BaseDevice.deviceName">deviceName</a></td> |
243 <td>Public method to get the name of the device.</td> |
246 <td>Public method to get the name of the device.</td> |
244 </tr> |
247 </tr> |
245 <tr> |
248 <tr> |
246 <td><a href="#BaseDevice.disableWebrepl">disableWebrepl</a></td> |
249 <td><a href="#BaseDevice.disableWebrepl">disableWebrepl</a></td> |
247 <td>Public method to write the given WebREPL password to the connected device and modify the start script to start the WebREPL server.</td> |
250 <td>Public method to modify the start script to not start the WebREPL server.</td> |
248 </tr> |
251 </tr> |
249 <tr> |
252 <tr> |
250 <td><a href="#BaseDevice.disconnectFromLan">disconnectFromLan</a></td> |
253 <td><a href="#BaseDevice.disconnectFromLan">disconnectFromLan</a></td> |
251 <td>Public method to disconnect from the LAN.</td> |
254 <td>Public method to disconnect from the LAN.</td> |
252 </tr> |
255 </tr> |
335 <td>Public method to get the list of library paths contained in 'sys.path'.</td> |
338 <td>Public method to get the list of library paths contained in 'sys.path'.</td> |
336 </tr> |
339 </tr> |
337 <tr> |
340 <tr> |
338 <td><a href="#BaseDevice.getModules">getModules</a></td> |
341 <td><a href="#BaseDevice.getModules">getModules</a></td> |
339 <td>Public method to show a list of modules built into the firmware.</td> |
342 <td>Public method to show a list of modules built into the firmware.</td> |
|
343 </tr> |
|
344 <tr> |
|
345 <td><a href="#BaseDevice.getSecurityModes">getSecurityModes</a></td> |
|
346 <td>Public method to get a list of security modes supported by the device.</td> |
340 </tr> |
347 </tr> |
341 <tr> |
348 <tr> |
342 <td><a href="#BaseDevice.getTime">getTime</a></td> |
349 <td><a href="#BaseDevice.getTime">getTime</a></td> |
343 <td>Public method to get the current time of the device.</td> |
350 <td>Public method to get the current time of the device.</td> |
344 </tr> |
351 </tr> |
1138 </dl> |
1145 </dl> |
1139 <a NAME="BaseDevice.disableWebrepl" ID="BaseDevice.disableWebrepl"></a> |
1146 <a NAME="BaseDevice.disableWebrepl" ID="BaseDevice.disableWebrepl"></a> |
1140 <h4>BaseDevice.disableWebrepl</h4> |
1147 <h4>BaseDevice.disableWebrepl</h4> |
1141 <b>disableWebrepl</b>(<i></i>) |
1148 <b>disableWebrepl</b>(<i></i>) |
1142 <p> |
1149 <p> |
1143 Public method to write the given WebREPL password to the connected device and |
1150 Public method to modify the start script to not start the WebREPL server. |
1144 modify the start script to start the WebREPL server. |
|
1145 </p> |
1151 </p> |
1146 |
1152 |
1147 <dl> |
1153 <dl> |
1148 <dt>Return:</dt> |
1154 <dt>Return:</dt> |
1149 <dd> |
1155 <dd> |
1699 <dl> |
1705 <dl> |
1700 |
1706 |
1701 <dt>Raises <b>OSError</b>:</dt> |
1707 <dt>Raises <b>OSError</b>:</dt> |
1702 <dd> |
1708 <dd> |
1703 raised to indicate an issue with the device |
1709 raised to indicate an issue with the device |
|
1710 </dd> |
|
1711 </dl> |
|
1712 <a NAME="BaseDevice.getSecurityModes" ID="BaseDevice.getSecurityModes"></a> |
|
1713 <h4>BaseDevice.getSecurityModes</h4> |
|
1714 <b>getSecurityModes</b>(<i></i>) |
|
1715 <p> |
|
1716 Public method to get a list of security modes supported by the device. |
|
1717 </p> |
|
1718 |
|
1719 <dl> |
|
1720 <dt>Return:</dt> |
|
1721 <dd> |
|
1722 list of supported security modes |
|
1723 </dd> |
|
1724 </dl> |
|
1725 <dl> |
|
1726 <dt>Return Type:</dt> |
|
1727 <dd> |
|
1728 list of str |
1704 </dd> |
1729 </dd> |
1705 </dl> |
1730 </dl> |
1706 <a NAME="BaseDevice.getTime" ID="BaseDevice.getTime"></a> |
1731 <a NAME="BaseDevice.getTime" ID="BaseDevice.getTime"></a> |
1707 <h4>BaseDevice.getTime</h4> |
1732 <h4>BaseDevice.getTime</h4> |
1708 <b>getTime</b>(<i></i>) |
1733 <b>getTime</b>(<i></i>) |
2705 |
2730 |
2706 <dt><i>ssid</i> (str)</dt> |
2731 <dt><i>ssid</i> (str)</dt> |
2707 <dd> |
2732 <dd> |
2708 SSID of the access point (unused) |
2733 SSID of the access point (unused) |
2709 </dd> |
2734 </dd> |
2710 <dt><i>security</i> (int (optional))</dt> |
2735 <dt><i>security</i> (str (optional))</dt> |
2711 <dd> |
2736 <dd> |
2712 security method (defaults to None) (unused) |
2737 security mode (defaults to None) (unused) |
2713 </dd> |
2738 </dd> |
2714 <dt><i>password</i> (str (optional))</dt> |
2739 <dt><i>password</i> (str (optional))</dt> |
2715 <dd> |
2740 <dd> |
2716 password (defaults to None) (unused) |
2741 password (defaults to None) (unused) |
2717 </dd> |
2742 </dd> |