Module implementing a websocket class to be connect to the MicroPython webrepl interface.
None |
MicroPythonWebreplSocket | Class implementing a websocket client to be connected to the MicroPython webrepl interface. |
None |
Class implementing a websocket client to be connected to the MicroPython webrepl interface.
None |
None |
MicroPythonWebreplSocket | Constructor |
__textDataReceived | Private slot handling a received text message. |
connectToDevice | Public method to connect to the given host and port. |
disconnect | Public method to disconnect the websocket. |
hasTimedOut | Public method to check, if the last 'readUntil()' has timed out. |
isConnected | Public method to check the connected state of the websocket. |
login | Public method to login to the webrepl console of the device. |
readAll | Public method to read all available data. |
readUntil | Public method to read data until an expected sequence is found (default: \n) or a specific size is exceeded. |
setTimeout | Public method to set the socket timeout value. |
timeout | |
waitForConnected | Public method to wait for the websocket being connected. |
writeTextMessage | Public method write some text data to the webrepl server of the connected device. |
None |
Constructor
Private slot handling a received text message.
Public method to connect to the given host and port.
Public method to disconnect the websocket.
Public method to check, if the last 'readUntil()' has timed out.
Public method to check the connected state of the websocket.
Public method to login to the webrepl console of the device.
Public method to read all available data.
Public method to read data until an expected sequence is found (default: \n) or a specific size is exceeded.
Public method to set the socket timeout value.
Public method to wait for the websocket being connected.
Public method write some text data to the webrepl server of the connected device.