Comments (7)
To reduce write wearing only persist counters every n
packages and when rejoining just add n
to the counter. This way the join works and the network still accepts the packages and regard the counter difference as package loss.
n
should depend on send interval.
from esp32-paxcounter.
Could be a way. Another, maybe more straight forward way, would be to create/open a separare, second partition in NVRAM and store it there.
from esp32-paxcounter.
I am currently looking into this since I could need this in another project also. Do you suggest storing the data in the configdata_t
struct? I'd check for set parameters on reboot and using them if available.
from esp32-paxcounter.
I have to dig into the storing mechanism a bit more. Your suggestion sounds more feasible – from what I've interpreted so far, saving the data would always mean storing all the variables. Since seqnoDn
and seqnoUp
need to be saved on every package, that might wear out the nvram rather quickly.
from esp32-paxcounter.
This lib could / should be useful here:
https://github.com/espressif/arduino-esp32/blob/master/libraries/Preferences/src/Preferences.h
from esp32-paxcounter.
Example how to save keys in RTC RAM of ESP32 while deep sleep:
from esp32-paxcounter.
RTC RAM save keys is now implemented.
from esp32-paxcounter.
Related Issues (20)
- Are the pins on the LILYGO Paxcounter LoRa v2.1_1 broken out in such a way that sensors can be used? HOT 2
- About LilyGo v1.x HOT 3
- GPS not starting and BME680 not sending data on Lilygo v2.1 New HOT 20
- SDS011 seems to only generate one reading and then returns 0 for all following readings HOT 18
- Crash when running on TTGOV2 (TCXO version) HOT 6
- MAC Address Randomization HOT 2
- No connection to lorawan HOT 8
- question: what about high numbers? HOT 3
- Counting unique people with more than one pax counter? HOT 1
- Counter mode cyclic and cumulative in parallel? HOT 1
- Ratio measured WiFi devices vs. Bluetooth devices HOT 1
- IAQ status via LED / ws2812b HOT 1
- BLE Scanner not working on v3.6.0 on TTGO LoRa HOT 2
- LoPy4 Fails to join LoRa network (TTN & North) unless for SF7 HOT 4
- [Refactoring] simplify OTA update code using HTTPUpdate lib
- TTNV3 has no Converter og Decoder page HOT 1
- Heltec v3 Support HOT 1
- Hardware support for T-Beam V1.2 with AXP2101 HOT 9
- ttgov21new.h whant the 433mhz settings HOT 1
- Endian Encoding wrong: BMExxx Temperature in Mode PAYLOAD_ENCODER == 2 HOT 6
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from esp32-paxcounter.