Data sending interval

lansatec2 years ago

Good morning :
Is it possible to change the interval for sending data to the server? It is currently sending data every second and is saturating the server.

I've seen this line in the config.h and wanted to make sure it's the right place to change it :

#define DATA_INTERVAL_TABLE {1000, 2000, 5000} /* ms */

Could you confirm it for me?

Thank you very much in advance.

Constantino Conde Cid

Anton Tananaev2 years ago

What device are you talking about?

lansatec2 years ago

Hello,
The device is Freematics ONE+ Model B

Anton Tananaev2 years ago

Are you saying that by default it's reporting every second?

lansatec2 years ago

In my case it reports every second and I don't know how to change it.

Could you help me to change the interval?

Anton Tananaev2 years ago

It looks like DATA_INTERVAL_TABLE might be the right place to adjust it.

lansatec2 years ago

Could you tell me why there are three values? What does each value correspond to?

Thanks

Anton Tananaev2 years ago

It seems like there's some logic based on whether the device is stationary or not. You can just try setting all of them to the same value.

lansatec2 years ago

Thank you
I will carry out the relevant tests

Constantino Conde