Start to work on GPIOs
This commit is contained in:
@ -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;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user