Commit Graph
10 Commits
Author SHA1 Message Date
Adam Dobrowolski 5b162efbd0 EGD-3056 ./config/pre-commit-check-only.hook --branch-fix applied 2020-04-15 16:50:19 +02:00
Adam Dobrowolski 82793cf84f EGD-3056 Added c_str() to Keys and std::string operator for messages
* c_str() needed for pretty debug logs (to not log integers which means nothing)
* std::string operator needed to log not only message, ale it's content
  if provided (similar to __repr__ from pytohon
2020-04-15 16:50:19 +02:00
Adam Dobrowolski 2cee195e09 EGD-3056 subscribtion based execution (on typeid) added and works fine
Till now there was no clear way to register hanlder for message in
Service, with this approach one can register function/lambda handler
for Message which encurages handling messages in functions rather than
in hudge switch cases.
With aproach like this our Messages resembe something between Command
and State pattern. In state pattern `Message` would be `Event` send,
whereas Service would be `Context`.
2020-04-15 16:50:19 +02:00
Radoslaw Wicik a8573a404c Apply new style 2020-03-17 10:03:16 +01:00
Adam Dobrowolski ae915f3512 [EGD-2571] Clenup: removed MessageType static_casts, fixed debug.h defines. Added GPIO event 2020-02-12 13:31:13 +00:00
Mateusz 8b4cf5e35a WiP: Added Suspend/Resume API 2019-08-30 10:37:51 +02:00
Mateusz e8babd16d5 WiP: Removed unneeded WakeUp/GoSleep handlers
WiP: Added new handler - > SwitchPowerMode
2019-08-29 11:40:31 +02:00
Mateusz 61896bf8e8 #MATI SUPER FIX: added responseTo field 2019-08-12 12:32:11 +02:00
Robert Borzecki de900fdb0d Introduced MessaType enum class. 2019-06-03 13:32:48 +02:00
Robert Borzecki d3235d54d7 Removed submodule 2019-05-21 23:35:00 +02:00