| 243 | } |
| 244 | |
| 245 | void 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 | |
| 259 | void receiveNewIRmessage_cb(std::string message) { |
| 260 | showNewIRmessage(message); |
no test coverage detected