LSH-Core
A robust C++ framework for Arduino-based home automation nodes
Loading...
Searching...
No Matches
deserializer.hpp
Go to the documentation of this file.
1
21#ifndef LSHCORE_COMMUNICATION_DESERIALIZER_HPP
22#define LSHCORE_COMMUNICATION_DESERIALIZER_HPP
23
24#include <ArduinoJson.h>
25
29namespace Deserializer
30{
36 {
37 bool stateChanged = false;
38 bool networkClickHandled = false;
39 };
40
41 auto deserializeAndDispatch(const JsonDocument &doc) -> DispatchResult;
42
43} // namespace Deserializer
44
45#endif // LSHCORE_COMMUNICATION_DESERIALIZER_HPP
Provides a function to deserialize and dispatch a received Json payload.
Definition deserializer.cpp:32
auto deserializeAndDispatch(const JsonDocument &doc) -> DispatchResult
Main entry point for command processing. Deserializes a JSON document and immediately dispatches the ...
Definition deserializer.cpp:107
Represents the result of a dispatch operation.
Definition deserializer.hpp:36
bool stateChanged
True if the device state was changed by the command.
Definition deserializer.hpp:37
bool networkClickHandled
True if a network click was confirmed or handled.
Definition deserializer.hpp:38