mirror of
https://github.com/IoTManagerProject/IoTManager.git
synced 2026-03-27 06:32:19 +03:00
global cleaning, restructure
This commit is contained in:
13
include/Utils/JsonUtils.h
Normal file
13
include/Utils/JsonUtils.h
Normal file
@@ -0,0 +1,13 @@
|
||||
#pragma once
|
||||
|
||||
#include <Arduino.h>
|
||||
|
||||
String jsonReadStr(String& json, String name);
|
||||
|
||||
int jsonReadInt(String& json, String name);
|
||||
|
||||
String jsonWriteStr(String& json, String name, String volume);
|
||||
|
||||
String jsonWriteInt(String& json, String name, int volume);
|
||||
|
||||
String jsonWriteFloat(String& json, String name, float volume);
|
||||
19
include/Utils/StringUtils.h
Normal file
19
include/Utils/StringUtils.h
Normal file
@@ -0,0 +1,19 @@
|
||||
#pragma once
|
||||
|
||||
#include <Arduino.h>
|
||||
|
||||
uint8_t hexStringToUint8(String hex);
|
||||
|
||||
uint16_t hexStringToUint16(String hex);
|
||||
|
||||
String selectToMarkerLast(String str, String found);
|
||||
|
||||
String selectToMarker(String str, String found);
|
||||
|
||||
String deleteAfterDelimiter(String str, String found);
|
||||
|
||||
String deleteBeforeDelimiter(String str, String found);
|
||||
|
||||
String deleteBeforeDelimiterTo(String str, String found);
|
||||
|
||||
String selectFromMarkerToMarker(String str, String found, int number);
|
||||
26
include/Utils/TimeUtils.h
Normal file
26
include/Utils/TimeUtils.h
Normal file
@@ -0,0 +1,26 @@
|
||||
#pragma once
|
||||
|
||||
#include <Arduino.h>
|
||||
|
||||
void Time_Init();
|
||||
|
||||
void time_check();
|
||||
|
||||
void reconfigTime();
|
||||
|
||||
/*
|
||||
* Получение текущего времени
|
||||
*/
|
||||
String GetTime();
|
||||
|
||||
String GetTimeUnix();
|
||||
|
||||
String GetTimeWOsec();
|
||||
|
||||
String GetDate();
|
||||
|
||||
String GetDataDigital();
|
||||
|
||||
int timeToMin(String Time);
|
||||
|
||||
const String prettyMillis(unsigned long time_ms = millis());
|
||||
Reference in New Issue
Block a user