Start to work on GPIOs

This commit is contained in:
2024-09-28 20:27:12 +02:00
parent 274b7089d1
commit 4d07d83904
5 changed files with 51 additions and 9 deletions

View File

@ -11,6 +11,7 @@
#include "storage.h"
#include "http_client.h"
#include "jwt.h"
#include "relays.h"
#include "esp_log.h"
@ -122,7 +123,7 @@ static cJSON *genDevInfo()
return NULL;
cJSON_AddStringToObject(json, "reference", DEV_REFERENCE);
cJSON_AddStringToObject(json, "version", DEV_VERSION);
cJSON_AddNumberToObject(json, "max_relays", DEV_MAX_RELAYS);
cJSON_AddNumberToObject(json, "max_relays", relays_count());
return json;
}