async def device_annce(app: application.ControllerApplication): # payload = {'nwkaddr': 27441, 'extaddr': '0x07a3c302008d1500', 'parentaddr': 0} # obj = ZpiObject(2, 5, 'tcDeviceInd', 202, payload, []) payload = {'srcaddr': 53322, 'nwkaddr': 53322, 'ieeeaddr': 0x41e54b02008d1500.to_bytes(8, 'little'), 'capabilities': 132} obj = ZpiObject(2, 5, 'endDeviceAnnceInd', 193, payload, []) app.handle_znp(obj)
async def device_annce(app: application.ControllerApplication): # payload = {'nwkaddr': 27441, 'extaddr': '0x07a3c302008d1500', 'parentaddr': 0} # obj = ZpiObject(2, 5, 'tcDeviceInd', 202, payload, []) payload = { "srcaddr": 53322, "nwkaddr": 53322, "ieeeaddr": 0x41E54B02008D1500.to_bytes(8, "little"), "capabilities": 132, } obj = ZpiObject(2, 5, "endDeviceAnnceInd", 193, payload, []) app.handle_znp(obj)