28085aa9be
Change default arch in Cross.toml.
2024-01-07 11:14:11 +00:00
038b47b5e3
Add cross-compile instructions and a config file.
2023-04-21 15:25:56 +01:00
643627706a
Bump version.
2023-03-13 11:30:13 +00:00
e7b68e6465
Replace failure with anyhow.
2023-03-13 11:29:06 +00:00
2e956be490
Large deps update (clap, mqtt, mongodb).
2023-03-12 09:18:16 +00:00
186868c052
Fix panic/format compilation error.
2023-03-12 09:18:16 +00:00
94ccd22c66
Update README.
2023-03-12 09:18:16 +00:00
6dda6dbcf7
Add Temp+Pressure node.
2019-08-10 08:59:42 +01:00
1782b1136a
Switched from error_chain to failure.
2019-06-12 13:37:06 +01:00
e6795c981c
Update dependencies; rumqtt API forced code changes.
2019-06-11 07:15:35 +01:00
b4da462407
Protocol change: extra byte before the data.
2019-06-11 07:12:42 +01:00
49570b79f9
Little source code optimisation.
2018-08-04 17:40:40 +01:00
d31bbf4114
Bump version (0.0.16). Mostly internal code cleanup/reorg.
2018-07-30 11:01:25 +01:00
4f85de481e
Unwrap quick_main! and switch some warn!/error!s.
2018-07-30 01:18:21 +01:00
8c939a7912
Reorg: 'map_err's and 'run' in 'quick_main!'
2018-07-30 00:50:50 +01:00
3c891ce9cb
Remove lock().unwrap() by manually bailing.
2018-07-29 11:56:00 +01:00
8515a69132
Remove MyErrorWrapper (not needed anymore).
2018-07-29 10:33:03 +01:00
a136c774f4
Default cfgfilename handling.
2018-07-29 10:14:16 +01:00
b53c609f46
Move output thread handling to named function.
2018-07-29 10:11:03 +01:00
a55ce9d980
Handle MQTT publ errors without discard_and_print_.
2018-07-29 09:21:06 +01:00
b6b2b81c5c
Input handler thread uses chain_err.
2018-07-28 23:59:14 +01:00
e7a42972f0
Chain_err() works also on Option.
2018-07-28 23:01:34 +01:00
6dda66d041
Rename s2n to gw (breaks cmdline params).
2018-07-28 21:58:50 +01:00
4fcbed780c
Improve error handling (messages, unwraps).
2018-07-28 21:26:06 +01:00
d75eb8e569
Update README.
2018-07-27 21:57:59 +01:00
c938813938
AuxOpts move to params; use * cleanup.
2018-07-27 21:27:16 +01:00
21550b60e3
Separate the functional parts into lib.rs.
2018-07-27 21:03:35 +01:00
9014700f79
Bump version (0.0.15) - breaking changes in params and config.
2018-07-27 16:02:36 +01:00
634af590a2
Encapsulate params into struct, print as info.
2018-07-27 16:01:24 +01:00
0248f03b09
Improve node_list error message.
2018-07-27 15:47:13 +01:00
950ba0c89c
Make cfgfile format explicitly YAML (so that any filename will work).
2018-07-27 15:41:48 +01:00
dfd4b1e541
Config file is optional; read params also from ENV; formatting.
2018-07-27 15:38:37 +01:00
6cf8c92cdb
Enable_ switches are toggle_ and configurable in cfgfile.
2018-07-27 09:22:00 +01:00
f960a00ea8
Config file is configurable.
2018-07-27 09:01:00 +01:00
1e9a344356
Read params also from config file.
2018-07-27 08:52:48 +01:00
bc50d5f10f
Read devices from a yaml file.
...
HashMap representation uses strings for index; u8 would be
better but somehow config-rs does not parse the Map correctly
(no error but shows empty map).
2018-07-26 19:18:03 +01:00
161dd66623
Use HashMap for device list.
2018-07-20 08:49:00 +01:00
4df98e5ab1
Refactor match/if let, add config-rs dep.
2018-07-26 07:20:28 +01:00
235b145dd2
Use &'a str for SensorData after all.
2018-07-21 17:44:45 +01:00
62af0486cc
Bump version.
2018-07-20 16:19:30 +01:00
245ca6f204
Implement basic packed decoding checks.
2018-07-20 16:18:34 +01:00
10f3bc4ad8
process_bytes can return Error.
2018-07-20 08:40:00 +01:00
88ca2991c6
Add a list of failure states to README.
2018-07-20 08:20:03 +01:00
17c0e10ec1
Switch &'a str to String in SensorData and up.
...
... anticipating parsing a node_list.
2018-07-20 07:09:32 +01:00
9745d30343
Formatting and typo.
2018-07-19 22:54:02 +01:00
e3b35d9b54
Rewrite nodes decoding as a match from a list.
2018-07-19 22:14:12 +01:00
4d4d3078c2
Bump version.
2018-07-19 22:12:13 +01:00
0b98d1ef98
Hoist sensor data decoding to a separate type/function.
2018-07-18 22:33:29 +01:00
5e07807c41
Add readme and license.
2018-07-03 07:59:47 +01:00
ce0aa95eee
Change name, bump crates.
2018-07-02 21:14:10 +01:00