stanleyhuangyc / Freematics

Official source code repository for Freematics
https://freematics.com
419 stars 345 forks source link

Feature request: disable standby/sleep #124

Open wladkolc opened 3 years ago

wladkolc commented 3 years ago

Please make config variable to completely disable sleep standby.. we can use telelogger_v4 to watch my car when parked..

ankostis commented 1 year ago

Already supported.

Setting any value of this config.h: #define STATIONARY_TIME_TABLE {30, 60, 180} to 0, disables standby, as can be seen in the for-loop deciding when to sleep: https://github.com/stanleyhuangyc/Freematics/blob/859b0fd92cd149126298cd07bc5efe4ab8dc08ab/firmware_v5/telelogger/telelogger.ino#L719-L725

The position of the number set to 0 controls the transmission-interval in msec, corresponding to the same position in DATA_INTERVAL_TABLE.