mirror of
https://github.com/IoTManagerProject/IoTManager.git
synced 2026-03-27 06:32:19 +03:00
recovery
This commit is contained in:
38
src/Tests.cpp
Normal file
38
src/Tests.cpp
Normal file
@@ -0,0 +1,38 @@
|
||||
#include "Tests.h"
|
||||
|
||||
#include "BufferExecute.h"
|
||||
#include "Global.h"
|
||||
#include "ItemsList.h"
|
||||
#include "Macro.h"
|
||||
#include "MySensorsDataParse.h"
|
||||
#include "Utils/StringUtils.h"
|
||||
|
||||
void testsPerform() {
|
||||
//Serial.println("====some tests section====");
|
||||
////===========================================================================
|
||||
//String str = "0;1;2;3;4";
|
||||
//char* mychar = new char[str.length() + 1];
|
||||
//strcpy(mychar, str.c_str());
|
||||
//test(mychar);
|
||||
////===========================================================================
|
||||
//String myJson;
|
||||
//const int capacity = JSON_ARRAY_SIZE(2) + 3 * JSON_OBJECT_SIZE(3);
|
||||
//StaticJsonBuffer<capacity> jb;
|
||||
//JsonArray& arr = jb.createArray();
|
||||
//JsonObject& obj1 = jb.createObject();
|
||||
//obj1["test1"] = 1;
|
||||
//obj1["test2"] = 2;
|
||||
//obj1["test3"] = 3;
|
||||
//arr.add(obj1);
|
||||
//arr.printTo(myJson);
|
||||
//Serial.println(myJson);
|
||||
//
|
||||
//
|
||||
//
|
||||
////===========================================================================
|
||||
////Serial.println(isDigitDotCommaStr("-12552.5555"));
|
||||
////String str = "Geeks for Geeks ";
|
||||
////Serial.println(itemsCount2(str, " "));
|
||||
//
|
||||
//Serial.println("==========end============");
|
||||
}
|
||||
Reference in New Issue
Block a user