Open GoogleCodeExporter opened 8 years ago
I guess the code was written before the Pro Series (S2B) were launched. It has
no real effect on the code as such, but if you want to make the warning
disappear, just add a "case 0x1e:" as below. The code is in the
com.rapplogic.xbee.api package in the XBee class.
if (ap.isOk()) {
switch (ap.getValue()[0]) {
case 0x17:
log.info("XBee radio is Series 1");
break;
case 0x18:
log.info("XBee radio is Series 1 Pro");
break;
case 0x19:
log.info("XBee radio is Series 2");
break;
case 0x1a:
log.info("XBee radio is Series 2 Pro");
break;
case 0x1e:
log.info("XBee radio is Series 2 Pro (S2B)");
break;
default:
log.warn("Unknown radio type (HV): " + ap.getValue()[0]);
}
}
Original comment by volle...@gmail.com
on 24 Jul 2014 at 6:35
Original issue reported on code.google.com by
noor.f...@gmail.com
on 28 May 2012 at 4:06Attachments: