Skip to content

Commit

Permalink
fx
Browse files Browse the repository at this point in the history
  • Loading branch information
openshwprojects committed Oct 20, 2024
1 parent 46f6dad commit 5eaf5c7
Showing 1 changed file with 16 additions and 3 deletions.
19 changes: 16 additions & 3 deletions src/cmnds/cmd_tasmota.c
Original file line number Diff line number Diff line change
Expand Up @@ -363,7 +363,7 @@ static commandResult_t cmnd_MqttClient(const void * context, const char *cmd, co
CFG_SetMQTTClientId(Tokenizer_GetArg(0));
return CMD_RES_OK;
}
static commandResult_t cmnd_State(const void * context, const char *cmd, const char *args, int cmdFlags) {
static commandResult_t cmnd_stub(const void * context, const char *cmd, const char *args, int cmdFlags) {

return CMD_RES_OK;
}
Expand Down Expand Up @@ -429,10 +429,23 @@ int taslike_commands_init(){
//cmddetail:"fn":"cmnd_MqttClient","file":"cmnds/cmd_tasmota.c","requires":"",
//cmddetail:"examples":""}
CMD_RegisterCommand("MqttClient", cmnd_MqttClient, NULL);

// those are stubs, they are handled elsewhere so we can have Tasmota style replies

//cmddetail:{"name":"State","args":"NULL",
//cmddetail:"descr":"NULL",
//cmddetail:"fn":"cmnd_State","file":"cmnds/cmd_tasmota.c","requires":"",
//cmddetail:"fn":"cmnd_stub","file":"cmnds/cmd_tasmota.c","requires":"",
//cmddetail:"examples":""}
CMD_RegisterCommand("State", cmnd_stub, NULL);
//cmddetail:{"name":"Sensor","args":"NULL",
//cmddetail:"descr":"NULL",
//cmddetail:"fn":"cmnd_stub","file":"cmnds/cmd_tasmota.c","requires":"",
//cmddetail:"examples":""}
CMD_RegisterCommand("Sensor", cmnd_stub, NULL);
//cmddetail:{"name":"Status","args":"NULL",
//cmddetail:"descr":"NULL",
//cmddetail:"fn":"cmnd_stub","file":"cmnds/cmd_tasmota.c","requires":"",
//cmddetail:"examples":""}
CMD_RegisterCommand("State", cmnd_State, NULL);
CMD_RegisterCommand("Status", cmnd_stub, NULL);
return 0;
}

0 comments on commit 5eaf5c7

Please sign in to comment.