document existence of _type=status in code

addresses #482
This commit is contained in:
Jan-Piet Mens 2024-07-31 13:55:24 +02:00
parent ea54106a50
commit 9275341b94
2 changed files with 3 additions and 0 deletions

View File

@ -883,6 +883,7 @@ void handle_message(void *userdata, char *topic, char *payload, size_t payloadle
else if (!strcmp(j->string_, "cmd")) _type = T_CMD;
else if (!strcmp(j->string_, "lwt")) _type = T_LWT;
else if (!strcmp(j->string_, "steps")) _type = T_STEPS;
else if (!strcmp(j->string_, "status")) _type = T_STATUS;
else if (!strcmp(j->string_, "transition")) _type = T_TRANSITION;
else if (!strcmp(j->string_, "waypoint")) _type = T_WAYPOINT;
else if (!strcmp(j->string_, "waypoints")) _type = T_WAYPOINTS;
@ -985,6 +986,7 @@ void handle_message(void *userdata, char *topic, char *payload, size_t payloadle
goto cleanup;
break;
#endif /* WITH_TOURS */
case T_STATUS: /* Fall through */
default:
dumpedpayload = bindump(payload, payloadlen);
#ifdef WITH_LUA

View File

@ -40,6 +40,7 @@ typedef enum {
#ifdef WITH_TOURS
T_REQUEST,
#endif
T_STATUS,
} payload_type;
JsonNode *lister(char *username, char *device, time_t s_lo, time_t s_hi, int reverse);