SensESP 3.3.0
Universal Signal K sensor toolkit ESP32
Loading...
Searching...
No Matches
network_state.h
Go to the documentation of this file.
1#ifndef SENSESP_NET_NETWORK_STATE_H_
2#define SENSESP_NET_NETWORK_STATE_H_
3
4#include <cstddef>
5
8
9namespace sensesp {
10
30
39
52class NetworkStateProducer : public ValueProducer<NetworkState> {
53 public:
56
59
60 private:
61 // Opaque Arduino-ESP32 network_event_handle_t (= size_t). Stored as
62 // size_t in the header so we don't need to pull Network.h here.
63 std::size_t wifi_got_ip_handle_ = 0;
64 std::size_t wifi_disconnected_handle_ = 0;
65 std::size_t wifi_ap_start_handle_ = 0;
66 std::size_t wifi_ap_stop_handle_ = 0;
67 std::size_t eth_got_ip_handle_ = 0;
68 std::size_t eth_lost_ip_handle_ = 0;
69 std::size_t eth_disconnected_handle_ = 0;
70};
71
72} // namespace sensesp
73
74#endif // SENSESP_NET_NETWORK_STATE_H_
NetworkStateProducer & operator=(const NetworkStateProducer &)=delete
NetworkStateProducer(const NetworkStateProducer &)=delete
constexpr NetworkState kNetworkConnected
constexpr NetworkState kNetworkProvisioning
constexpr NetworkState kNetworkDisconnected
constexpr NetworkState kNetworkNoConnection
WiFiState NetworkState
Transport-agnostic network state.
constexpr NetworkState kNetworkAPMode