-
Notifications
You must be signed in to change notification settings - Fork 57
Description
Hi there!
I have found some weird behavior. Let me explain.
I'm working with a network which has different channels but the same ID.
So I have a method that calls readDeviceInfo() to get the essential info about some XBeeRemote. When I call that method I just check if my Local XBeeDevice has the same channel of the requested XBeeRemote, and if it haven't then I just change the Local XBeeDevice channel to be able to communicate with the XBeeRemote. When I try the first time(Calling readDeviceInfo method) it works but in future calls it doesn't, I don't know why.
The method throws an exception, which is basically the following:
com.digi.xbee.api.exceptions.ATCommandException: There was a problem sending the AT command packet. > TX failure at com.digi.xbee.api.AbstractXBeeDevice.checkATCommandResponseIsValid(AbstractXBeeDevice.java:1980) at com.digi.xbee.api.AbstractXBeeDevice.sendParameter(AbstractXBeeDevice.java:2227) at com.digi.xbee.api.AbstractXBeeDevice.getParameter(AbstractXBeeDevice.java:2160) at com.digi.xbee.api.AbstractXBeeDevice.readDeviceInfo(AbstractXBeeDevice.java:451) at gui.NodeInfoController.refreshInfo(NodeInfoController.java:437) at gui.NodeInfoController.lambda$initialize$6(NodeInfoController.java:168)
The exception refers to following line of code:
XBeeRemote.readDeviceInfo();
Hope someone helps.