예제 #1
0
 def detail(self, args=None):
     """ show one component detail
     """
     try:
         self.my_ow = OneWireNetwork(args[0], self._log)
     except OneWireException as err:
         raise HelperError(err.value)
     return self.my_ow.show_component_detail(args[1])
예제 #2
0
 def ds2408(self, args=None):
     """ show ds2408 components
     """
     try:
         self.my_ow = OneWireNetwork(args[0], self._log)
     except OneWireException as err:
         raise HelperError(err.value)
     return self.my_ow.show_ds2408_detail()
예제 #3
0
 def all(self, args=None):
     """ show all components
     """
     try:
         self.my_ow = OneWireNetwork(args[0], self._log)
     except OneWireException as err:
         raise HelperError(err.value)
     return self.my_ow.show_all_components()