29 if (j.contains(
"sensorPort"))
33 if (j.contains(
"sensorBaudrate"))
36 j.at(
"sensorBaudrate").get_to(baudrate);
nlohmann::json json
json namespace
Utility class for logging to console and file.
#define LOG_TRACE
Detailled info to trace the execution of the program. Should not be called on functions which receive...
Abstract Uart Sensor Class.
static int baudrate2Selection(Baudrate baud)
Returns the guiSelection for the given baudrate.
int _selectedBaudrate
Baudrate for the sensor.
Baudrate
Available Baudrates.
@ BAUDRATE_115200
Baudrate with 115200 symbols per second [Baud].
@ BAUDRATE_57600
Baudrate with 57600 symbols per second [Baud].
@ BAUDRATE_230400
Baudrate with 230400 symbols per second [Baud].
@ BAUDRATE_FASTEST
Fastest possible Baudrate will be automatically chosen.
@ BAUDRATE_128000
Baudrate with 128000 symbols per second [Baud].
@ BAUDRATE_38400
Baudrate with 38400 symbols per second [Baud].
@ BAUDRATE_9600
Baudrate with 9600 symbols per second [Baud].
@ BAUDRATE_19200
Baudrate with 19200 symbols per second [Baud].
@ BAUDRATE_921600
Baudrate with 921600 symbols per second [Baud].
@ BAUDRATE_460800
Baudrate with 460800 symbols per second [Baud].
void restore(const json &j)
Restores the node from a json object.
Baudrate sensorBaudrate() const
Returns the Baudrate for the element Selected by the GUI.
json save() const
Saves the node into a json object.