aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Cargo.lock2
-rw-r--r--README.md9
-rw-r--r--src/main.rs3
3 files changed, 13 insertions, 1 deletions
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] <sensor>...