示例#1
0
def addr_nwk(nwk):
    addr = t.Address()
    addr.address_mode = t.ADDRESS_MODE.NWK
    addr.address = nwk
    return addr
示例#2
0
def addr_nwk_and_ieee(nwk, ieee):
    addr = t.Address()
    addr.address_mode = t.ADDRESS_MODE.NWK_AND_IEEE
    addr.address = nwk
    addr.ieee = ieee
    return addr
示例#3
0
def addr_ieee(ieee):
    addr = t.Address()
    addr.address_mode = t.ADDRESS_MODE.IEEE
    addr.address = ieee
    return addr