This forum uses cookies
This forum makes use of cookies to store your login information if you are registered, and your last visit if you are not. Cookies are small text documents stored on your computer; the cookies set by this forum can only be used on this website and pose no security risk. Cookies on this forum also track the specific topics you have read and when you last read them. Please confirm whether you accept or reject these cookies being set.

A cookie will be stored in your browser regardless of choice to prevent you being asked this question again. You will be able to change your cookie settings at any time using the link in the footer.

Real time data download
#11
Sorry, I somehow missed the notification for your reply.

I did not yet have a chance to test your code, but I think the problem is that you are requesting the channels separately and therefore are requesting faster than the phone can respond. Your request to PP_CHANNELS_def seems to work fine, but your request to PP_CHANNELS_def_x follows without a delay and I would not be surprised if the (single-threaded) web server on the phone is not yet ready.

In any case, this is not a good idea. You should ask for all channels in a single request to keep the network load low, but also to keep the reference time consistent (i.e. what happens if there is one new data point between requesting the y and the z axis?). So, simply request them all in one go:
get?acc_time=42&accX=42|acc_time&accY=42|acc_time&accZ=42|acc_time
Reply


Messages In This Thread
Real time data download - by jbshute - 11-10-2018, 12:50 PM
RE: Real time data download - by jbshute - 11-10-2018, 02:08 PM
RE: Real time data download - by jbshute - 11-11-2018, 03:03 AM
RE: Real time data download - by jbshute - 11-11-2018, 01:25 AM
RE: Real time data download - by Romaxx - 10-28-2021, 09:40 AM
RE: Real time data download - by Romaxx - 10-28-2021, 01:11 PM
RE: Real time data download - by Romaxx - 11-04-2021, 05:40 PM
RE: Real time data download - by Sebastian Staacks - 11-03-2021, 11:51 AM
RE: Real time data download - by Romaxx - 11-06-2021, 08:40 PM
RE: Real time data download - by Romaxx - 03-26-2022, 11:37 PM
RE: Real time data download - by Romaxx - 11-08-2021, 08:57 PM
RE: Real time data download - by Romaxx - 03-19-2022, 09:23 PM
RE: Real time data download - by Romaxx - 03-22-2022, 08:15 PM
RE: Real time data download - by Romaxx - 03-29-2022, 09:13 PM

Forum Jump: