Closed ChrSchultz closed 3 years ago
Default is 60 seconds, as set in paxcounter_orig.conf.
If you change the cycle by rcommand, this should be persistent, meaning after reset device keeps this setting.
Need to check, if i can reproduce your observation, and if yes, will try to spot the bug.
I can confirm this issue, i could reproduce it. But could not spot the bug yet.
Currently, it seems it's at least not a fatal bug in the NVS saving routine, since a modified runtime setting for counter mode is succesful restored after power up.
Weird. /cc @spmrider
I just pushed a fix, which probably solves this, to development branch (v2.0.16). Could you, please, retest with this version and report result here? If the fix is successful, i will merge it to master. Thanks.
/cc @spmrider
I can´'t find development v2.0.16 ... in your repository... in the actually version of branch development exists the same issue...
I finally spotted the bug, in main.cpp the sendcycle was always initalized with the default value, not with the runtime configuration value. This is now fixed in master and now it should work. Can you confirm, please?
now It works fine, I close Issue thanks
My Paxcounters sendcycle is set to 120
but instead of sending every 240 seconds the device is sending data every 60 seconds... If I set sendcyle by rcom 0x0A, 0x78 to 120 all is working fine ( device sends every 240 sec) than I reboot device with hard reset (Reset-Button) and device sends every 60 sec. but sendcyle is 120.