This commit is contained in:
Dmitry Borisenko
2020-08-31 01:55:03 +03:00
parent 3816711f04
commit e66b49ddc3
3 changed files with 35 additions and 18 deletions

View File

@@ -1,6 +1,6 @@
#include <SSDP.h>
#include "test.h"
#include "Class/CallBackTest.h"
#include "Class/NotAsinc.h"
#include "Class/ScenarioClass.h"
@@ -87,22 +87,7 @@ void setup() {
just_load = false;
initialized = true;
String buf = "Geeks-for-Geeks";
int buf_len = buf.length() + 1;
char char_array[buf_len];
buf.toCharArray(char_array, buf_len);
char* token = strtok(char_array, "-");
while (token != NULL) {
printf("%s\n", token);
token = strtok(NULL, "-");
}
//char str[] = "Geeks for Geeks";
//char* token;
//char* rest = str;
//while ((token = strtok_r(rest, " ", &rest))) {
// printf("%s\n", token);
//}
setupTest();
}
void loop() {
@@ -122,7 +107,7 @@ void loop() {
MqttClient::loop();
mySwitch->loop();
myScenario->loop();
//loopScenario();
loopTest();
loopCmd();
loopSerial();