diff options
| -rw-r--r-- | Cargo.lock | 2 | ||||
| -rw-r--r-- | README.md | 9 | ||||
| -rw-r--r-- | src/main.rs | 3 |
3 files changed, 13 insertions, 1 deletions
@@ -1223,7 +1223,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" [[package]] name = "ruuvitag-upload" -version = "0.2.0" +version = "0.3.0" dependencies = [ "assert_fs 0.11.3 (registry+https://github.com/rust-lang/crates.io-index)", "directories 1.0.2 (registry+https://github.com/rust-lang/crates.io-index)", @@ -21,6 +21,15 @@ structure where ALIAS will either be the address of the sensor, or an alias that you can define. +If uploading measurements fails, the measurements are +cached. The cached measurements are uploaded the next time +ruuvitag-upload is called. Cached measurements are uploaded +first, from oldest to newest. If uploading cached measurements +fails, the current measurements are again cached for next time. +This way, you won't lose any measurements. When a cached +measurement is succesfully uploaded, the cache entry will be +removed. + Parts of the program are inspired by and some parts are copied from [ruuvitag-listener](https://github.com/lautis/ruuvitag-listener). ## USAGE diff --git a/src/main.rs b/src/main.rs index c2b94e7..09a6188 100644 --- a/src/main.rs +++ b/src/main.rs @@ -87,6 +87,9 @@ This way, you won't lose any measurements. When a cached measurement is succesfully uploaded, the cache entry will be removed. +Parts of the program are inspired by and some parts are copied +from ruuvitag-listener (https://github.com/lautis/ruuvitag-listener). + USAGE: ruuvitag-upload [--url=URL] <sensor>... |
