34 <hr /> |
34 <hr /> |
35 <a NAME="MicroPythonDeviceInterface" ID="MicroPythonDeviceInterface"></a> |
35 <a NAME="MicroPythonDeviceInterface" ID="MicroPythonDeviceInterface"></a> |
36 <h2>MicroPythonDeviceInterface</h2> |
36 <h2>MicroPythonDeviceInterface</h2> |
37 |
37 |
38 <p> |
38 <p> |
39 Class implementing some file system commands for MicroPython. |
39 Class implementing an interface to talk to a connected MicroPython device. |
40 </p> |
|
41 <p> |
|
42 Commands are provided to perform operations on the file system of a |
|
43 connected MicroPython device. Supported commands are: |
|
44 <ul> |
|
45 <li>ls: directory listing</li> |
|
46 <li>lls: directory listing with meta data</li> |
|
47 <li>cd: change directory</li> |
|
48 <li>pwd: get the current directory</li> |
|
49 <li>put: copy a file to the connected device</li> |
|
50 <li>putData: write data to a file of the connected device</li> |
|
51 <li>get: get a file from the connected device</li> |
|
52 <li>getData: read data of a file of the connected device</li> |
|
53 <li>rm: remove a file from the connected device</li> |
|
54 <li>rmrf: remove a file/directory recursively (like 'rm -rf' in bash) |
|
55 <li>mkdir: create a new directory</li> |
|
56 <li>rmdir: remove an empty directory</li> |
|
57 <li>fileSystemInfo: get information about the file system |
|
58 </ul> |
|
59 </p> |
|
60 <p> |
|
61 There are additional non file systemcommands. |
|
62 <ul> |
|
63 <li>getBoardData: get information about the connected board</li> |
|
64 <li>getDeviceData: get version info about MicroPython and some implementation |
|
65 information</li> |
|
66 <li>getModules: get a list of built-in modules</li> |
|
67 <li>getTime: get the current time</li> |
|
68 <li>syncTime: synchronize the time of the connected device</li> |
|
69 <li>showTime: show the current time of the connected device</li> |
|
70 </ul> |
|
71 </p> |
40 </p> |
72 <h3>Signals</h3> |
41 <h3>Signals</h3> |
73 <dl> |
42 <dl> |
74 |
43 |
75 <dt>dataReceived(data)</dt> |
44 <dt>dataReceived(data)</dt> |