Implement ESP-IDF walking skeleton with SoftAP, health API, and host tests, then Slice 2 ISecureStore/NvsSecureStore, STA join, POST /api/wifi, and the provisioning web UI. Co-authored-by: Cursor <cursoragent@cursor.com>
47 lines
1022 B
C++
47 lines
1022 B
C++
/**
|
|
* @file NetError.hpp
|
|
* @brief Typed errors for network bootstrap operations.
|
|
*
|
|
* DigiRadio firmware — https://github.com/manvalan/DigiRadio
|
|
*
|
|
* Copyright 2026 Michele Bigi
|
|
* SPDX-License-Identifier: Apache-2.0
|
|
*
|
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
* you may not use this file except in compliance with the License.
|
|
* You may obtain a copy of the License at
|
|
* http://www.apache.org/licenses/LICENSE-2.0
|
|
*
|
|
* @author Michele Bigi
|
|
* @date 2026-07-06
|
|
*/
|
|
#pragma once
|
|
|
|
namespace net {
|
|
|
|
/**
|
|
* @brief NetError — failure causes for network bring-up.
|
|
*
|
|
* @dname NetError
|
|
* @return n/a (type)
|
|
* @pubstate n/a
|
|
*
|
|
* @author Michele Bigi
|
|
* @date 2026-07-06
|
|
*/
|
|
enum class NetError {
|
|
NvsInitFailed,
|
|
NetifInitFailed,
|
|
EventLoopFailed,
|
|
WifiInitFailed,
|
|
WifiConfigFailed,
|
|
WifiStartFailed,
|
|
HttpServerStartFailed,
|
|
StaConnectTimeout,
|
|
StaConnectFailed,
|
|
StoreSaveFailed,
|
|
CredentialsNotFound,
|
|
};
|
|
|
|
} // namespace net
|