Exemplo n.º 1
0
    def pair_by_mac_address(self, mac_address):
        r""" Pairs with a Myo of a specific *mac_address*. The
        address can be either an integer representing the mac
        address or a string. """

        self._notnull()
        mac_address = MacAddress(mac_address)

        error = error_details_t()
        result = lib.pair_by_mac_address(self, mac_address.intval, byref(error))
        error.raise_on_error()
        return result
Exemplo n.º 2
0
 def mac_address(self):
     self._notnull()
     return MacAddress(lib.get_mac_address(self))