167 self.__pasteOff() |
167 self.__pasteOff() |
168 self.__blockReadyRead = False |
168 self.__blockReadyRead = False |
169 |
169 |
170 return True |
170 return True |
171 |
171 |
172 def execute(self, commands, *, mode="raw", timeout=0): |
172 def execute(self, commands, *, mode="raw", timeout=0): # noqa: U100 |
173 """ |
173 """ |
174 Public method to send commands to the connected device and return the |
174 Public method to send commands to the connected device and return the |
175 result. |
175 result. |
176 |
176 |
177 @param commands list of commands to be executed |
177 @param commands list of commands to be executed |
238 err = b"" |
238 err = b"" |
239 |
239 |
240 self.__blockReadyRead = False |
240 self.__blockReadyRead = False |
241 return out, err |
241 return out, err |
242 |
242 |
243 def executeAsync(self, commandsList, submitMode): |
243 def executeAsync(self, commandsList, submitMode): # noqa: U100 |
244 """ |
244 """ |
245 Public method to execute a series of commands over a period of time |
245 Public method to execute a series of commands over a period of time |
246 without returning any result (asynchronous execution). |
246 without returning any result (asynchronous execution). |
247 |
247 |
248 @param commandsList list of commands to be execute on the device |
248 @param commandsList list of commands to be execute on the device |