get_last_result()
- 1 Minute to read
get_last_result()
- 1 Minute to read
Article summary
Did you find this summary helpful?
Thank you for your feedback
Return last motion result.
Reference
Arguments
None
Return
tuple
Type | Description |
---|---|
int | Last error code. |
str | Last error message. |
tuple | Last motion result. |
Exceptions
See the complete list of motion exceptions.
Usage Example
...
class RayaApplication(RayaApplicationBase):
async def setup(self):
self.motion = await self.enable_controller('motion')
....
async def loop(self):
....
ecode , emsg , result = self.motion.get_last_result()
...
async def finish(self):
...
Was this article helpful?