vghjvghi
Fork of XBeeLib3 by
Diff: XBee/XBee.cpp
- Revision:
- 5:da2ea7a76243
- Parent:
- 4:629712865107
- Child:
- 6:06522f3a6642
diff -r 629712865107 -r da2ea7a76243 XBee/XBee.cpp --- a/XBee/XBee.cpp Mon Jun 01 18:59:43 2015 +0200 +++ b/XBee/XBee.cpp Thu Mar 31 11:39:30 2016 +0200 @@ -676,7 +676,8 @@ XB900HP_NZ = 0x2C, XBP24C_TH_DIP = 0x2D, XB24C_TH_DIP = 0x2E, - XLR_BASEBOARD = 0x2F + XLR_BASEBOARD = 0x2F, + XBP24C_S2C_SMT = 0x30 #endif }; const bool fw_4_bytes_len = _fw_version > 0x0FFF && _fw_version < 0xFFFF; @@ -729,6 +730,9 @@ return XBeeWiFi; #endif } else if (hw_version_msb == XBP24C || hw_version_msb == XB24C) { + if (fw_4_bytes_len && fw_nibble_3 == 2) { + return Raw_802_15_4; + } #ifdef EXTRA_XBEE_PROTOCOLS if (fw_4_bytes_len && fw_nibble_3 == 5) { return SmartEnergy; @@ -755,6 +759,14 @@ return None; } else if (hw_version_msb == XB900HP_NZ) { return DigiPoint; + } else if (hw_version_msb == XBP24C_TH_DIP || hw_version_msb == XB24C_TH_DIP || hw_version_msb == XBP24C_S2C_SMT) { + if (fw_4_bytes_len && fw_nibble_3 == 5) { + return SmartEnergy; + } + if (fw_4_bytes_len && fw_nibble_3 == 2) { + return Raw_802_15_4; + } + return ZigBee; } #else }