Utility functions.
More...
#include "utility.hpp"
#include <ArduinoJson.h>
#include <esp_system.h>
#include "log.h"
#include "mem/nvs/settings.hpp"
- Author
- Vincent Hamp
- Date
- 09/02/2023
◆ esp_delayed_restart()
void esp_delayed_restart |
( |
| ) |
|
◆ http_receive_timeout2ms()
uint32_t http_receive_timeout2ms |
( |
| ) |
|
- Warning
- Do not use this function in time-critical code. Always cache the value!
◆ uri2address()
std::optional< dcc::Address::value_type > uri2address |
( |
std::string_view | uri | ) |
|
◆ uri2loco_address()
std::optional< dcc::Address > uri2loco_address |
( |
std::string_view | uri | ) |
|
◆ validate_json()
bool validate_json |
( |
std::string_view | json | ) |
|