SensESP 3.3.0
Universal Signal K sensor toolkit ESP32
Loading...
Searching...
No Matches
network_provisioner.h
Go to the documentation of this file.
1#ifndef SENSESP_NET_NETWORK_PROVISIONER_H_
2#define SENSESP_NET_NETWORK_PROVISIONER_H_
3
4#include <Arduino.h>
5#include <IPAddress.h>
6
7namespace sensesp {
8
31 public:
32 virtual ~NetworkProvisioner() = default;
33
35 virtual IPAddress local_ip() const = 0;
36
38 virtual IPAddress gateway_ip() const = 0;
39
47 virtual String mac_address() const = 0;
48
58 virtual bool is_connected() const = 0;
59};
60
61} // namespace sensesp
62
63#endif // SENSESP_NET_NETWORK_PROVISIONER_H_
Transport-agnostic network provisioner interface.
virtual IPAddress gateway_ip() const =0
Default gateway IPv4 address. Returns IPAddress() if no link.
virtual bool is_connected() const =0
True iff the network interface is usable.
virtual IPAddress local_ip() const =0
Current local IPv4 address. Returns IPAddress() if no link.
virtual ~NetworkProvisioner()=default
virtual String mac_address() const =0
Hardware MAC address of the active interface.