Module implementing an interface to talk to a connected MicroPython device via a serial link.
None |
MicroPythonSerialDeviceInterface | Class implementing an interface to talk to a connected MicroPython device via a serial link. |
None |
Class implementing an interface to talk to a connected MicroPython device via a serial link.
None |
None |
MicroPythonSerialDeviceInterface | Constructor |
__executeAsyncPaste | Private method to execute a series of commands over a period of time without returning any result (asynchronous execution). |
__executeAsyncRaw | Private method to execute a series of commands over a period of time without returning any result (asynchronous execution). |
__execute_paste | Private method to send commands to the connected device using 'paste' mode and return the result. |
__execute_raw | Private method to send commands to the connected device using 'raw REPL' mode and return the result. |
__pasteOff | Private method to switch 'paste' mode off. |
__pasteOn | Private method to switch the connected device to 'paste' mode. |
__rawOff | Private method to switch 'raw' mode off. |
__rawOn | Private method to switch the connected device to 'raw' mode. |
__readSerial | Private slot to read all available serial data and emit it with the "dataReceived" signal for further processing. |
connectToDevice | Public method to connect to the device. |
disconnectFromDevice | Public slot to disconnect from the device. |
execute | Public method to send commands to the connected device and return the result. |
executeAsync | Public method to execute a series of commands over a period of time without returning any result (asynchronous execution). |
handlePreferencesChanged | Public slot to handle a change of the preferences. |
isConnected | Public method to get the connection status. |
probeDevice | Public method to check the device is responding. |
write | Public method to write data to the connected device. |
None |
Constructor
Private method to execute a series of commands over a period of time without returning any result (asynchronous execution).
Private method to execute a series of commands over a period of time without returning any result (asynchronous execution).
Private method to send commands to the connected device using 'paste' mode and return the result.
If no serial connection is available, empty results will be returned.
Private method to send commands to the connected device using 'raw REPL' mode and return the result.
If no serial connection is available, empty results will be returned.
Private method to switch 'paste' mode off.
Private method to switch the connected device to 'paste' mode.
Note: switching to paste mode is done with synchronous writes.
Private method to switch 'raw' mode off.
Private method to switch the connected device to 'raw' mode.
Note: switching to raw mode is done with synchronous writes.
Private slot to read all available serial data and emit it with the "dataReceived" signal for further processing.
Public method to connect to the device.
Public slot to disconnect from the device.
Public method to send commands to the connected device and return the result.
If no serial connection is available, empty results will be returned.
Public method to execute a series of commands over a period of time without returning any result (asynchronous execution).
Public slot to handle a change of the preferences.
Public method to get the connection status.
Public method to check the device is responding.
If the device has not been flashed with a MicroPython firmware, the probe will fail.
Public method to write data to the connected device.