Skip to content

Commit f17ee35

Browse files
committed
xbee: add support for DigiMesh and 802 protocols in the S2C P5 module
Signed-off-by: Ruben Moral <ruben.moral@digi.com>
1 parent a357ced commit f17ee35

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

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

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/**
2-
* Copyright 2017-2021, Digi International Inc.
2+
* Copyright 2017-2022, 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
@@ -263,6 +263,10 @@ else if (firmwareVersion.startsWith("3"))
263263
case XBEE3_DM_LR_868:
264264
return DIGI_MESH;
265265
case S2C_P5:
266+
if (firmwareVersion.toLowerCase().startsWith("b"))
267+
return DIGI_MESH;
268+
else if (firmwareVersion.toLowerCase().startsWith("c"))
269+
return RAW_802_15_4;
266270
return ZIGBEE;
267271
default:
268272
return ZIGBEE;

0 commit comments

Comments
 (0)