XBee API mode library
Diff: Scan.cpp
- Revision:
- 5:b82970ef7fb0
- Parent:
- 0:0232a97b3883
- Child:
- 16:cdfcb63b2c4b
--- a/Scan.cpp Mon Nov 26 01:52:03 2012 +0000 +++ b/Scan.cpp Wed Jan 23 04:00:51 2013 +0000 @@ -1,5 +1,5 @@ /* -Copyright (c) 2011, Senio Networks, Inc. +Copyright (c) 2013, Senio Networks, Inc. Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal @@ -84,6 +84,7 @@ break; case ZigBeeReceivePacket: case ZigBeeIODataSampleRxIndicator: + case NodeIdentificationIndicator: from = 9; break; case RemoteCommandResponse: @@ -96,6 +97,7 @@ switch (frameType) { case ZigBeeReceivePacket: case ZigBeeIODataSampleRxIndicator: + case NodeIdentificationIndicator: from = 1; break; case RemoteCommandResponse: @@ -104,6 +106,18 @@ } len = 8; break; + case RemoteAddress16: + from = 12; + len = 2; + break; + case RemoteAddress64: + from = 14; + len = 8; + break; + case ParentAddress16: + from = SIZE(buf, index) - 8; + len = 2; + break; case RetryCount: from = 4; break; @@ -120,6 +134,16 @@ from = 12; len = SIZE(buf, index) - 12; break; + case NIString: + from = 22; + len = SIZE(buf, index) - (22 + 8); + break; + case DeviceType: + from = SIZE(buf, index) - 6; + break; + case SourceEvent: + from = SIZE(buf, index) - 5; + break; case RawData: from = 1; len = SIZE(buf, index) - 1;