MCPcopy Create free account
hub / github.com/OMOTE-Community/OMOTE-Firmware / executeCommand

Function executeCommand

src/applicationInternal/commandHandler.cpp:245–257  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

243}
244
245void executeCommand(uint16_t command, std::string additionalPayload) {
246 try {
247 if (commands.count(command) > 0) {
248 omote_log_d("command: will execute command '%u' with additionalPayload '%s'\r\n", command, additionalPayload.c_str());
249 executeCommandWithData(command, commands.at(command), additionalPayload);
250 } else {
251 omote_log_w("command: command '%u' not found\r\n", command);
252 }
253 }
254 catch (const std::out_of_range& oor) {
255 omote_log_e("executeCommand: internal error, command not registered\r\n");
256 }
257}
258
259void receiveNewIRmessage_cb(std::string message) {
260 showNewIRmessage(message);

Callers 15

scene_start_sequence_TVFunction · 0.85
activate_scene_cbFunction · 0.85
virtualKeypad_event_cbFunction · 0.85
button_clicked_event_cbFunction · 0.85
smartHomeToggle_event_cbFunction · 0.85
smartHomeSlider_event_cbFunction · 0.85
appleKey_event_cbFunction · 0.85

Calls 1

executeCommandWithDataFunction · 0.85

Tested by

no test coverage detected