get_last_result()
  • 1 Minute to read

get_last_result()


Article summary

Return last motion result.

Reference

Arguments

None

Return

tuple

TypeDescription
intLast error code.
strLast error message.
tupleLast 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?

What's Next