jankolkmeier / xbee-api

Node.js and Chrome communicate with XBee/ZigBee devices in API mode
MIT License
105 stars 51 forks source link

frame_id exceeds the limit (0xff) #49

Closed tibeoh closed 7 years ago

tibeoh commented 7 years ago

If the frame_id is 0xff next frame id should be 1.

jankolkmeier commented 7 years ago

Good catch! Did this actually cause you trouble?

tibeoh commented 7 years ago

Yes because for each ZIGBEE_TRANSMIT_REQUESTframe sent I save it in an object with the id as key. When I receive a response ZIGBEE_TRANSMIT_STATUS I remove it from the object and I can know if each frame is really received. But with this issue, I send a frame with an id 256 and never receive response with this id.