Добавляем функцию получения JSON всех значений Items

This commit is contained in:
2022-02-26 22:42:57 +03:00
parent d047ebf453
commit 5d0d3274c5
3 changed files with 33 additions and 10 deletions

View File

@@ -67,6 +67,10 @@ void setup() {
IoTItems.push_back((IoTItem*) new externalVariable("{\"id\":\"rel4\",\"val\":34,\"int\":30}"));
// пример получения JSON всех Items
serializeJson(*getLocalItemsAsJSON(), Serial);
Serial.println("");
//тест перебора пинов из расширения
// for (int i = 109; i < 112; i++) {
// IoTgpio.pinMode(i, OUTPUT);