I have integrated Mbed Cloud Java SDK to my Android App and it works fine. However, the following two APIs always throw exceptions -
though they complete the intended tasks(i.e. setting a resource value/getting a resource value) successfully with the help of setResourceValueAsync()/getResourceValueAsync() which are called inside the above mentioned APIs. E.g. When setting a resource value, I can see that the value changes on my pelion portal, but the API throws exception in android device.
If I call setResourceValueAsync() directly, all the things work fine.
I have followed the examples provided here - https://github.com/ARMmbed/mbed-cloud-sdk-java/tree/master/examples/src/main/java/pelion_cloud_sdk
Therefore, I assume implementation of get and set device resource calls in my application are alright. Please help.
Note: I am using mbed-cloud-sdk v1.2.8 and my application runs on Android O+ devices.