ENTS-tock
Environmental NeTworked Sensor firmware on Tock OS
Loading...
Searching...
No Matches
configuration.hpp
Go to the documentation of this file.
1#ifndef LIB_USER_CONFIG_INCLUDE_CONFIGURATION_H
2#define LIB_USER_CONFIG_INCLUDE_CONFIGURATION_H
3
4#include <Arduino.h>
5#include <libents/proto/user_config.pb.h>
6#include <stdint.h>
7
13void setConfig(const UserConfiguration& new_config);
14
26const UserConfiguration& getConfig();
27
36String getConfigJson();
37
42
48void printConfig(const UserConfiguration& pconfig);
49
50#endif // LIB_USER_CONFIG_INCLUDE_CONFIGURATION_H
void printReceivedConfig()
Print the current user configuration to the log.
void printConfig(const UserConfiguration &pconfig)
Print a user config.
String getConfigJson()
Get the current configuration as a JSON string.
void setConfig(const UserConfiguration &new_config)
Set the user configuration.
const UserConfiguration & getConfig()
Get a copy of the current user configuration.