37 <h2>BaseDevice</h2> |
37 <h2>BaseDevice</h2> |
38 |
38 |
39 <p> |
39 <p> |
40 Base class for the more specific MicroPython devices. |
40 Base class for the more specific MicroPython devices. |
41 </p> |
41 </p> |
|
42 <p> |
|
43 It includes a list of commands for general use on the various boards. |
|
44 If a board needs special treatment, the command should be overwritten |
|
45 in the board specific subclass. Commands are provided to perform operations |
|
46 on the file system of a connected MicroPython device, for getting and setting |
|
47 the time on the board and getting board related data. Supported file system |
|
48 commands are: |
|
49 <ul> |
|
50 <li>ls: directory listing</li> |
|
51 <li>lls: directory listing with meta data</li> |
|
52 <li>cd: change directory</li> |
|
53 <li>pwd: get the current directory</li> |
|
54 <li>put: copy a file to the connected device</li> |
|
55 <li>putData: write data to a file of the connected device</li> |
|
56 <li>get: get a file from the connected device</li> |
|
57 <li>getData: read data of a file of the connected device</li> |
|
58 <li>rm: remove a file from the connected device</li> |
|
59 <li>rmrf: remove a file/directory recursively (like 'rm -rf' in bash) |
|
60 <li>mkdir: create a new directory</li> |
|
61 <li>rmdir: remove an empty directory</li> |
|
62 <li>fileSystemInfo: get information about the file system |
|
63 </ul> |
|
64 </p> |
|
65 <p> |
|
66 Supported non file system commands are: |
|
67 <ul> |
|
68 <li>getBoardData: get information about the connected board</li> |
|
69 <li>getDeviceData: get version info about MicroPython and some implementation |
|
70 information</li> |
|
71 <li>getModules: get a list of built-in modules</li> |
|
72 <li>getTime: get the current time</li> |
|
73 <li>syncTime: synchronize the time of the connected device</li> |
|
74 <li>showTime: show the current time of the connected device</li> |
|
75 </ul> |
|
76 </p> |
42 <h3>Derived from</h3> |
77 <h3>Derived from</h3> |
43 QObject |
78 QObject |
44 <h3>Class Attributes</h3> |
79 <h3>Class Attributes</h3> |
45 |
80 |
46 <table> |
81 <table> |