From 467f72a356ceeb625b0e8f51baeb5a3afc43376b Mon Sep 17 00:00:00 2001 From: Ruben Moral Date: Thu, 12 Apr 2018 16:34:01 +0200 Subject: [PATCH] xbee3: add support for DigiMesh and 802.15.4 protocols on XBee3 modules Signed-off-by: Ruben Moral --- .../main/java/com/digi/xbee/api/models/XBeeProtocol.java | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/library/src/main/java/com/digi/xbee/api/models/XBeeProtocol.java b/library/src/main/java/com/digi/xbee/api/models/XBeeProtocol.java index b5bfdbed..d7db93bd 100644 --- a/library/src/main/java/com/digi/xbee/api/models/XBeeProtocol.java +++ b/library/src/main/java/com/digi/xbee/api/models/XBeeProtocol.java @@ -246,7 +246,12 @@ else if (firmwareVersion.startsWith("8")) case XBEE3: case XBEE3_SMT: case XBEE3_TH: - return ZIGBEE; + if (firmwareVersion.startsWith("2")) + return RAW_802_15_4; + else if (firmwareVersion.startsWith("3")) + return DIGI_MESH; + else + return ZIGBEE; case XB8X: return DIGI_MESH; default: