|
ForestHub SDK 0.1.0
C++14 LLM SDK for PC and embedded platforms
|
Abstract interface for network connectivity. More...
#include <network.hpp>
Public Member Functions | |
| virtual std::string | Connect (unsigned long timeout_ms=30000)=0 |
| Activate the network connection. | |
| virtual void | Disconnect ()=0 |
| Disconnect from the network. | |
| virtual NetworkStatus | GetStatus () const =0 |
| Get the current connection status. | |
| virtual std::string | GetLocalIp () const =0 |
| Get the local IP address as string. | |
| virtual int | GetSignalStrength () const =0 |
| Get signal strength in dBm. | |
Abstract interface for network connectivity.
Transport-specific configuration (credentials, etc.) belongs in the concrete class constructor via NetworkConfig. This interface only handles activation/deactivation and status.
|
pure virtual |
Activate the network connection.
Transport-specific parameters (SSID, APN, etc.) are set at construction time.
| timeout_ms | Maximum time to wait for connection in milliseconds. |
|
pure virtual |
Get the local IP address as string.
|
pure virtual |
Get signal strength in dBm.