pluginsettings.h 380 Bytes
Newer Older
Alessio Netti's avatar
Alessio Netti committed
1
2
3
4
5
6
7
8
9
10
11
12
13
14
//
// Created by Netti, Alessio on 07.03.19.
//

#ifndef PROJECT_PLUGINSETTINGS_H
#define PROJECT_PLUGINSETTINGS_H

typedef struct {
    std::string sensorPattern;
    std::string mqttPrefix;
    std::string	tempdir;
    unsigned int cacheInterval;
} pluginSettings_t;

Alessio Netti's avatar
Alessio Netti committed
15
16
static bool to_bool(const std::string& s) { return s=="true" || s=="on"; }

Alessio Netti's avatar
Alessio Netti committed
17
#endif //PROJECT_PLUGINSETTINGS_H