def addr_nwk(nwk): addr = t.Address() addr.address_mode = t.ADDRESS_MODE.NWK addr.address = nwk return addr
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
def addr_ieee(ieee): addr = t.Address() addr.address_mode = t.ADDRESS_MODE.IEEE addr.address = ieee return addr