Exemplo n.º 1
0
def bag_number(number):
    """Factory: set or read bag number -- single use only!"""
    with get_device() as dev:
        nn = b'' if not number else number.encode('ascii')

        resp = dev.send_recv(CCProtocolPacker.bag_number(nn))

        print("Bag number: %r" % resp)
Exemplo n.º 2
0
def bag_number(number):
    "Factory: set or read bag number -- single use only!"
    dev = ColdcardDevice(sn=force_serial)

    nn = b'' if not number else number.encode('ascii')

    resp = dev.send_recv(CCProtocolPacker.bag_number(nn))

    print("Bag number: %r" % resp)