idfxx 1.0.0
Modern C++23 components for ESP-IDF
Loading...
Searching...
No Matches
app.hpp
Go to the documentation of this file.
1// SPDX-License-Identifier: Apache-2.0
2// Copyright 2026 Chris Leishman
3
4#pragma once
5
30#include <cstdint>
31#include <string>
32#include <string_view>
33
34namespace idfxx::app {
35
41[[nodiscard]] std::string_view version();
42
48[[nodiscard]] std::string_view project_name();
49
55[[nodiscard]] std::string_view compile_time();
56
62[[nodiscard]] std::string_view compile_date();
63
69[[nodiscard]] std::string_view idf_version();
70
77
83[[nodiscard]] std::string elf_sha256_hex();
84
// end of idfxx_core_app // end of idfxx_core
87
88} // namespace idfxx::app
std::string_view project_name()
Returns the project name.
std::string_view idf_version()
Returns the ESP-IDF version string used to build the firmware.
std::string elf_sha256_hex()
Returns the ELF SHA-256 hash as a hex string.
uint32_t secure_version()
Returns the secure version counter.
std::string_view version()
Returns the application version string.
std::string_view compile_time()
Returns the compile time string.
std::string_view compile_date()
Returns the compile date string.
std::expected< T, std::error_code > result
result type wrapping a value or error code.
Definition error.hpp:120