SensESP 3.3.0
Universal Signal K sensor toolkit ESP32
Loading...
Searching...
No Matches
networking.h
Go to the documentation of this file.
1#ifndef SENSESP_NET_NETWORKING_H_
2#define SENSESP_NET_NETWORKING_H_
3
4// Backward-compat shim. The previous monolithic Networking class has been
5// split into:
6//
7// - NetworkProvisioner abstract base, transport-agnostic IP query API
8// (network_provisioner.h)
9// - WiFiProvisioner concrete WiFi implementation, formerly named
10// Networking (wifi_provisioner.h)
11// - EthernetProvisioner concrete native-Ethernet implementation
12// (ethernet_provisioner.h)
13//
14// And:
15//
16// - NetworkState transport-agnostic state enum, alias of WiFiState
17// (network_state.h)
18// - NetworkStateProducer single producer that listens to the unified
19// Arduino-ESP32 Network event bus and emits state
20// for any active interface (network_state.h)
21//
22// Existing user code that includes <sensesp/net/networking.h> and writes
23// `Networking` (or `WiFiState`) continues to compile because of the
24// aliases here plus those in network_state.h.
25//
26// New code should prefer:
27// #include "sensesp/net/wifi_provisioner.h" // for WiFiProvisioner
28// #include "sensesp/net/ethernet_provisioner.h" // for EthernetProvisioner
29// #include "sensesp/net/network_state.h" // for NetworkState
30// #include "sensesp/net/network_provisioner.h" // for the abstract base
31
35
36namespace sensesp {
37
42
46
47} // namespace sensesp
48
49#endif // SENSESP_NET_NETWORKING_H_
Unified producer that emits NetworkState transitions.
Manages the ESP's WiFi connection.
WiFiProvisioner Networking
Definition networking.h:41
NetworkStateProducer WiFiStateProducer
Definition networking.h:45