Getting BLE_ERROR (-1) when making a Json request on a Vivoactive device. The request works fine in the simulator. The watch is connected to a Nexus 7 and I can see the connection working well (notifications, calendar).
Thanks for any suggestions.
Yes, I check if the phone is connected and it is.
It happens all the time, same error "-1" (BLE_ERROR).
Again, in the simulator I do get back the json reply with no problem.
I am using the latest version of the SDK, 1.1.3.
The firmware is 3.00 (from Settings -> System -> About)
The Connect IQ version on the device is 1.1.2. I just compiled the app with that version of the SDK and I get the same error.
It does seem to be a limitation of the json message size. I tested my app with a json request I found here (in the forum), a very short reply (http://echo.jsontest.com/date/143233...direction/Flat) and I no longer get the error -1.
If this is true, than this is a pretty serious limitation, it would be good to document it (with the specific limit for the json message size).
There isn't a hard limitation that I know of, but there are practical limitations related to the speed of the BLE link, and the amount of memory available on the device. The response you have posted above is about 4KB, which I would expect to work as long as your app has enough memory remaining to receive it. It could take 4-8 seconds for that response to transfer to the device, which might affect behavior.