コード例 #1
0
 async def request(self, position: Optional[int] = None):
     """Send a LA/SP/RangeLow request command to message receivers."""
     # TODO: validate the multiplier
     message = Message(self.name_path, position)
     await self.issue_command(Command(message))
コード例 #2
0
 async def request(self):
     """Send a LA/SmoothedPosition request command to message receivers."""
     # TODO: validate the state
     message = Message(self.name_path)
     await self.issue_command(Command(message))
コード例 #3
0
 async def request(self, periods: Optional[int]=None):
     """Send a BuiltinLED/Blink/Notify request command to message receivers."""
     # TODO: validate the periods
     message = Message(self.name_path, periods)
     await self.issue_command(Command(message))
コード例 #4
0
 async def request(self, state: Optional[int]=None):
     """Send a BuiltinLED request command to message receivers."""
     # TODO: validate the state
     message = Message(self.name_path, state)
     await self.issue_command(Command(message))
コード例 #5
0
 async def request(self, interval: Optional[int]=None):
     """Send a BuiltinLED/Blink/LowInterval request command to message receivers."""
     # TODO: validate the interval
     message = Message(self.name_path, interval)
     await self.issue_command(Command(message))