Module implementing an interface to talk to a connected MicroPython device via a webrepl connection.
None |
MicroPythonWebreplDeviceInterface | Class implementing an interface to talk to a connected MicroPython device via a webrepl connection. |
None |
Class implementing an interface to talk to a connected MicroPython device via a webrepl connection.
None |
None |
MicroPythonWebreplDeviceInterface | Constructor |
__pasteOff | Private method to switch 'paste' mode off. |
__pasteOn | Private method to switch the connected device to 'paste' mode. |
__readAll | Private method to read all data and emit it for further processing. |
__readSocket | Private slot to read all available 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 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 read all data and emit it for further processing.
Private slot to read all available 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.
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.