[ANDROID] Failed to connect using new connectivity API
Received data: WB_DATAMSG_CLIENT_ON_GET_RESULT, type: 5, direct msg, msgLen: 20, reqId: 22016, size: 26
E Error while receiving data
E java.lang.NullPointerException: Attempt to invoke virtual method 'byte java.lang.Byte.byteValue()' on a null objec
t reference
E at com.movesense.mds.internal.connectivity.Util.sfDecode(Util.java:147)
E at com.movesense.mds.internal.connectivity.ConnectedDevice.getNextPacket(ConnectedDevice.java:78)
E at com.movesense.mds.internal.connectivity.BleManager.dataAvailable(BleManager.java:436)
E at com.movesense.mds.internal.connectivity.BleManager.access$900(BleManager.java:39)
E at com.movesense.mds.internal.connectivity.BleManager$3$1.call(BleManager.java:154)
E at com.movesense.mds.internal.connectivity.BleManager$3$1.call(BleManager.java:151)
E at rx.internal.util.ActionSubscriber.onNext(ActionSubscriber.java:39)
E at rx.observers.SafeSubscriber.onNext(SafeSubscriber.java:134)
E at rx.internal.operators.OnSubscribeOnAssembly$OnAssemblySubscriber.onNext(OnSubscribeOnAssembly.java:124)
E at rx.internal.operators.OperatorMerge$MergeSubscriber.emitScalar(OperatorMerge.java:395)
E at rx.internal.operators.OperatorMerge$MergeSubscriber.tryEmit(OperatorMerge.java:355)
E at rx.internal.operators.OperatorMerge$InnerSubscriber.onNext(OperatorMerge.java:846)
E at rx.internal.operators.OnSubscribeOnAssembly$OnAssemblySubscriber.onNext(OnSubscribeOnAssembly.java:124)
E at rx.observers.SerializedObserver.onNext(SerializedObserver.java:91)
E at rx.observers.SerializedSubscriber.onNext(SerializedSubscriber.java:94)
E at rx.internal.operators.OperatorTakeUntil$1.onNext(OperatorTakeUntil.java:45)
E at rx.internal.operators.OnSubscribeOnAssembly$OnAssemblySubscriber.onNext(OnSubscribeOnAssembly.java:124)
E at rx.internal.operators.OnSubscribeMap$MapSubscriber.onNext(OnSubscribeMap.java:77)
E at rx.internal.operators.OnSubscribeOnAssembly$OnAssemblySubscriber.onNext(OnSubscribeOnAssembly.java:124)
E at rx.internal.operators.OnSubscribeFilter$FilterSubscriber.onNext(OnSubscribeFilter.java:76)
E at rx.internal.operators.OnSubscribeOnAssembly$OnAssemblySubscriber.onNext(OnSubscribeOnAssembly.java:124)
E at rx.internal.operators.OperatorObserveOn$ObserveOnSubscriber.call(OperatorObserveOn.java:224)
E at rx.internal.schedulers.ScheduledAction.run(ScheduledAction.java:55)
E at rx.internal.schedulers.ExecutorScheduler$ExecutorSchedulerWorker.run(ExecutorScheduler.java:107)
E at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1113)
E at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:588)
E at java.lang.Thread.run(Thread.java:818)
D sendCb(10000001), 23 bytes
Comments (7)
-
-
Account Deactivated Hey. ConnectivityAPI should be almost copy / paste from Android Example App. Unfortunately I'm not the author of this sample and looks like something is missing.
I will check this.
-
@Karol_Baran Do you have some update about this issue?
-
- changed status to open
-
@martin-vl Your log shows that you are using really old firmware on the sensor (0.6.0). There have been some changes with the /Info response since then and the new connectivity code does not support the old format. Please update your sensors to the latest suitable app using the sampleapp. You can find the update packages in here. Just choose the sample app you want on the sensor. In case you have your own app, please update to the latest movesense-device-lib, since there are a lot of fixes and changes.
-
Looks that this is an old issue which shouldn't be any longer valid. Closing issue.
-
- changed status to closed
- Log in to comment
i have a similar issue - the connectivity-API will try to connect to the device- which does, however, not have any address information:
using the latest mdslib-1.6.0(1)-release
UPDATE: i get the same exception when using the connectivity-API sample application ...