Question on data route timeouts that occur when trying to configure a device post reset
The following code is what I use to clear any previous logs and reset the device. I have a meta detector tracker and am using api version 2.8.6.
When I try configuring new routes after resetting the tracker I get the following data route timeout exception frequently
java.util.concurrent.TimeoutException: Adding a data route timed out after 8500ms.
If however I use the ios metawear app to reset the device and then use my android app to configure my routes, the device has no issues. If you could tell me what is wrong with my below routine to reset a device that would be great.
Prior to reset I have configured routes for logging and need to clear all existing routes / configurations. I do not get any errors when running the following reset code.
Logging logModule = mwBoard.lookupModule(Logging.class);
logModule.stopLogging();
logModule.clearEntries();
mwBoard.removeRoutes();
Debug debug = mwBoard.lookupModule(Debug.class);
debug.resetAfterGarbageCollect();
mwBoard.disconnect();
This discussion has been closed.
Comments