From eaa42665ede20a6348c665e530d32d8aa4e05ea6 Mon Sep 17 00:00:00 2001 From: Oskari Timperi Date: Mon, 27 May 2019 20:53:24 +0300 Subject: Update docs & Cargo.lock --- Cargo.lock | 2 +- README.md | 9 +++++++++ src/main.rs | 3 +++ 3 files changed, 13 insertions(+), 1 deletion(-) diff --git a/Cargo.lock b/Cargo.lock index 3081fff..ef7fc40 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -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)", diff --git a/README.md b/README.md index 45cfe99..2ea876f 100644 --- a/README.md +++ b/README.md @@ -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] ... -- cgit v1.2.3