|
| | WiFiProvisioner (const String &config_path, const String &client_ssid="", const String &client_password="", const String &ap_ssid="", const String &ap_password="") |
| |
| | ~WiFiProvisioner () override |
| |
| void | reset () override |
| |
| bool | to_json (JsonObject &doc) override |
| |
| bool | from_json (const JsonObject &config) override |
| |
| IPAddress | local_ip () const override |
| | Current local IPv4 address. Returns IPAddress() if no link.
|
| |
| IPAddress | gateway_ip () const override |
| | Default gateway IPv4 address. Returns IPAddress() if no link.
|
| |
| String | mac_address () const override |
| | Hardware MAC address of the active interface.
|
| |
| bool | is_connected () const override |
| | True iff the network interface is usable.
|
| |
| ValueProducer< WiFiState > * | get_wifi_state_producer () |
| |
| IPAddress | soft_ap_ip () const |
| |
| bool | is_captive_portal_enabled () const |
| |
| String | ssid () const |
| |
| int | rssi () const |
| |
| void | start_wifi_scan () |
| |
| int16_t | get_wifi_scan_results (std::vector< WiFiNetworkInfo > &ssid_list) |
| |
| | FileSystemSaveable (const String &config_path) |
| |
| virtual bool | load () override |
| | Load and populate the object from a persistent storage.
|
| |
| virtual bool | save () override |
| | Save the object to a persistent storage.
|
| |
| virtual bool | clear () override |
| | Delete the data from a persistent storage.
|
| |
| bool | find_config_file (const String &config_path, String &filename) |
| |
| | Saveable (const String &config_path) |
| |
| virtual bool | refresh () |
| | Refresh the object. This may or may not access the persistent storage but is not expected to overwrite the object's state.
|
| |
| const String & | get_config_path () const |
| |
| | Resettable (int priority=0) |
| |
| const int | get_reset_priority () const |
| |
| void | set_reset_priority (int priority) |
| |
| virtual | ~NetworkProvisioner ()=default |
| |
| | ValueProducer () |
| |
| | ValueProducer (const WiFiState &initial_value) |
| |
| virtual const WiFiState & | get () const |
| |
| std::enable_if< std::is_base_of< ValueConsumer< typenameVConsumer::input_type >, VConsumer >::value &&std::is_convertible< WiFiState, typenameVConsumer::input_type >::value, std::shared_ptr< VConsumer > >::type | connect_to (std::shared_ptr< VConsumer > consumer) |
| | Connect a producer to a transform with a different input type.
|
| |
| std::enable_if< std::is_base_of< ValueConsumer< typenameVConsumer::input_type >, VConsumer >::value &&std::is_convertible< WiFiState, typenameVConsumer::input_type >::value, VConsumer * >::type | connect_to (VConsumer *consumer) |
| |
| std::enable_if< std::is_base_of< ValueConsumer< typenameVConsumer::input_type >, VConsumer >::value &&std::is_convertible< WiFiState, typenameVConsumer::input_type >::value, VConsumer * >::type | connect_to (VConsumer &consumer) |
| |
| void | emit (const WiFiState &new_value) |
| |
| | Observable () |
| |
| | Observable (Observable &&other) |
| | Move constructor.
|
| |
| void | notify () |
| |
| int | attach (std::function< void()> observer) |
| | Attach an observer callback.
|
| |
| void | detach (int id) |
| | Remove a previously attached observer by its ID.
|
| |
Manages the ESP's WiFi connection.
Inherits from NetworkProvisioner so SensESPApp can hold any provisioner implementation through the same shared_ptr type. Adds WiFi-specific methods (scanning, soft-AP IP, captive portal flag) directly on the concrete class — code that needs them holds a typed pointer via SensESPApp::get_wifi_provisioner().
The legacy Networking class name is preserved as a typedef in networking.h for source-level backward compatibility.
Definition at line 170 of file wifi_provisioner.h.
| bool sensesp::WiFiProvisioner::is_connected |
( |
| ) |
const |
|
inlineoverridevirtual |
True iff the network interface is usable.
For STA/Ethernet this means link up + IP obtained. For WiFi in AP mode this also returns true — the device is network-reachable via the soft-AP even though it has no upstream connection. The Signal K websocket client uses this to gate connection attempts; the HTTP server uses it to know when the captive portal should be active.
Implements sensesp::NetworkProvisioner.
Definition at line 192 of file wifi_provisioner.h.