[vz-dev] [volkszaehler/vzlogger] 48cd57: First version of mqtt support. (#357)
GitHub
noreply at github.com
Mon Dec 31 18:03:08 CET 2018
Branch: refs/heads/master
Home: https://github.com/volkszaehler/vzlogger
Commit: 48cd5773a8188ee53ee8380bd979b974e9c12daf
https://github.com/volkszaehler/vzlogger/commit/48cd5773a8188ee53ee8380bd979b974e9c12daf
Author: Matthias Behr <mbehr at mcbehr.de>
Date: 2018-12-31 (Mon, 31 Dec 2018)
Changed paths:
M .travis.yml
M CMakeLists.txt
M README.md
M config.hpp.in
M etc/vzlogger.conf
M include/Buffer.hpp
M include/Channel.hpp
A include/mqtt.hpp
M src/CMakeLists.txt
M src/Config_Options.cpp
A src/mqtt.cpp
M src/threads.cpp
M src/vzlogger.cpp
M tests/CMakeLists.txt
M tests/mocks/CMakeLists.txt
Log Message:
-----------
First version of mqtt support. (#357)
* Cmake, readme, config changes to add libmosquitto.
* First version of mqtt client support.
Adds
- ENABLE_MQTT cmake option. Defaults to On but turns off automatically
if libmosquitto not found.
- basic mqtt client support using libmosquitto
- topics generated are:
vzlogger/<channel-id>/uuid
vzlogger/<channel-id>/raw
vzlogger/<channel-id>/agg
- added config options for
- host
- port (currently no tls/sll support!)
- user
- password
- topic (prefix used instead of vzlogger in above example)
- (some more, see etc/vzlogger.conf)
- agg values get's preferred instead of raw. Using config option
rawAndAgg this can be changed.
* adding libmosquitto-dev to travis-ci
* tell libmosquitto to be thread safe
* Add tls/cert support for MQTT
* Add id with "unparse" name of channel as well to the topic.
This should be to get a better understanding of what the channel
actually is. E.g. will contains obis ids.
* added reconnect handling if con. refused at startup
This should allow startups where the mqtt server will be available later
* Added a lock to protect chMap incase of multiple meters.
* announce uuid only if not empty
**NOTE:** This service has been marked for deprecation: https://developer.github.com/changes/2018-04-25-github-services-deprecation/
Functionality will be removed from GitHub.com on January 31st, 2019.
More information about the volkszaehler-dev
mailing list