Skip to content

Commit a8da096

Browse files
committed
hardware: add new versions to the supported hardware list
- 0x4E: XBee 3 Cellular LTE-M/NB-IoT (Telit) - 0x50: XB3-DMLR - 0x51: XB3-DMLR868 - 0x52: XBee 3 Reduced RAM - 0x53: S2C P5 https://onedigi.atlassian.net/browse/XBJAPI-535 Signed-off-by: Diego Escalona <diego.escalona@digi.com>
1 parent f133f1a commit a8da096

File tree

2 files changed

+19
-2
lines changed

2 files changed

+19
-2
lines changed

library/src/main/java/com/digi/xbee/api/models/HardwareVersionEnum.java

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/**
2-
* Copyright 2017-2019, Digi International Inc.
2+
* Copyright 2017-2021, Digi International Inc.
33
*
44
* This Source Code Form is subject to the terms of the Mozilla Public
55
* License, v. 2.0. If a copy of the MPL was not distributed with this
@@ -110,6 +110,16 @@ public enum HardwareVersionEnum {
110110
CELLULAR_3_LTE_M_ATT_TELIT(0x4C, "XBee3 Cellular LTE-M AT&T (Telit)"), // Never released
111111
/** @since 1.3.0 */
112112
CELLULAR_3_CAT1_LTE_VERIZON(0x4D, "XBee3 Cellular Cat 1 LTE Verizon");
113+
/** @since 1.3.1 */
114+
CELLULAR_3_LTE_M_TELIT(0x4E, "XBee 3 Cellular LTE-M/NB-IoT (Telit)");
115+
/** @since 1.3.1 */
116+
XBEE3_DM_LR(0x50, "XB3-DMLR");
117+
/** @since 1.3.1 */
118+
XBEE3_DM_LR_868(0x51, "XB3-DMLR868");
119+
/** @since 1.3.1 */
120+
XBEE3_RR(0x52, "XBee 3 Reduced RAM");
121+
/** @since 1.3.1 */
122+
S2C_P5(0x53, "S2C P5");
113123

114124
// Variables
115125
private final int value;

library/src/main/java/com/digi/xbee/api/models/XBeeProtocol.java

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/**
2-
* Copyright 2017-2019, Digi International Inc.
2+
* Copyright 2017-2021, Digi International Inc.
33
*
44
* This Source Code Form is subject to the terms of the Mozilla Public
55
* License, v. 2.0. If a copy of the MPL was not distributed with this
@@ -245,10 +245,12 @@ else if (firmwareVersion.startsWith("8"))
245245
case CELLULAR_3_LTE_M_ATT:
246246
case CELLULAR_3_LTE_M_ATT_TELIT:
247247
case CELLULAR_3_CAT1_LTE_VERIZON:
248+
case CELLULAR_3_LTE_M_TELIT:
248249
return CELLULAR;
249250
case XBEE3:
250251
case XBEE3_SMT:
251252
case XBEE3_TH:
253+
case XBEE3_RR:
252254
if (firmwareVersion.startsWith("2"))
253255
return RAW_802_15_4;
254256
else if (firmwareVersion.startsWith("3"))
@@ -257,6 +259,11 @@ else if (firmwareVersion.startsWith("3"))
257259
return ZIGBEE;
258260
case XB8X:
259261
return DIGI_MESH;
262+
case XBEE3_DM_LR:
263+
case XBEE3_DM_LR_868:
264+
return DIGI_MESH;
265+
case S2C_P5:
266+
return ZIGBEE;
260267
default:
261268
return ZIGBEE;
262269
}

0 commit comments

Comments
 (0)