mirror of
https://github.com/IoTManagerProject/IoTManager.git
synced 2026-03-26 22:22:16 +03:00
Добавляем функцию получения JSON всех значений Items
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user