get_last_result()
  • 1 Minute to read

get_last_result()


Article summary

Return last arms result.

Reference

Arguments

None

Return

tuple

TypeDescription
intLast error code.
strLast error message.
tupleLast arms result.

Exceptions

See the complete list of arms exceptions.

Usage Example

...

class RayaApplication(RayaApplicationBase):

    async def setup(self):
        self.arms = await self.enable_controller('arms')
        ....
        
    async def loop(self):
     ....
        ecode , emsg , result = self.arms.get_last_result()
      ...
      
    async def finish(self):
      ...

Was this article helpful?