Update configuration.cpp

This commit is contained in:
Thomas 2022-05-31 15:59:51 +02:00 committed by GitHub
parent 368996c0cc
commit bc267e9e3e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -51,6 +51,8 @@ Configuration ConfigurationManagement::readConfiguration() {
beacon.symbol = v["symbol"].as<String>();
if (v.containsKey("overlay"))
beacon.overlay = v["overlay"].as<String>();
if (v.containsKey("type"))
beacon.type = v["type"].as<String>();
beacon.smart_beacon.active = v["smart_beacon"]["active"] | false;
beacon.smart_beacon.turn_min = v["smart_beacon"]["turn_min"] | 25;