mirror of
https://github.com/IoTManagerProject/IoTManager.git
synced 2026-03-26 22:22:16 +03:00
Добавил три типа очередей: очередь сущностей, очередь структур, и очередь char
This commit is contained in:
29
src/Main.cpp
29
src/Main.cpp
@@ -41,35 +41,6 @@ void setup() {
|
||||
sendConfigJson = new SendJson;
|
||||
sendWigdetsJson = new SendJson;
|
||||
|
||||
// myBuf = new CommandBuf;
|
||||
//
|
||||
// myBuf->addCommand("zero");
|
||||
// myBuf->addCommand("one");
|
||||
// myBuf->addCommand("two");
|
||||
// myBuf->printCommands();
|
||||
//
|
||||
// myBuf->getLastCommand();
|
||||
// myBuf->getLastCommand();
|
||||
// myBuf->getLastCommand();
|
||||
// myBuf->printCommands();
|
||||
|
||||
myQueue = new QueueBuf;
|
||||
|
||||
myQueue->push(*new QueueInstance("text1"));
|
||||
myQueue->push(*new QueueInstance("text2"));
|
||||
myQueue->push(*new QueueInstance("text3"));
|
||||
|
||||
Serial.println(myQueue->front().get());
|
||||
Serial.println(myQueue->front().get());
|
||||
Serial.println(myQueue->front().get());
|
||||
|
||||
// myQueue->push(20);
|
||||
// myQueue->push(30);
|
||||
//
|
||||
// Serial.println(myQueue->front());
|
||||
// Serial.println(myQueue->front());
|
||||
// Serial.println(myQueue->front());
|
||||
|
||||
configure("/config.json");
|
||||
|
||||
//выводим остаток оперативной памяти после старта
|
||||
|
||||
Reference in New Issue
Block a user