12#include <TinyGsmClient.h>
28 bool disableModem()
const;
29 bool connectWiFi(
const char *ssid,
const char *password);
bool isLTEConnected()
Checks if the device is connected to LTE network.
Definition network.cpp:204
bool enableModem() const
Enables the LTE modem.
Definition network.cpp:92
void begin()
Initializes the network hardware.
Definition network.cpp:28
void maintainConnection(const char *ssid, const char *password, const char *apn)
Maintains the network connection by checking WiFi and LTE status.
Definition network.cpp:239
void disconnectWiFi()
Disconnects from the WiFi network.
Definition network.cpp:69
bool isWiFiConnected() const
Checks if the device is connected to WiFi.
Definition network.cpp:80
bool connectWiFi(const char *ssid, const char *password)
Connects to WiFi network.
Definition network.cpp:46
bool connectLTE(const char *apn)
Connects to LTE network using the specified APN.
Definition network.cpp:160
void disconnectLTE()
Disconnects from the LTE network.
Definition network.cpp:183
bool isConnected()
Checks if the device is connected to either WiFi or LTE network.
Definition network.cpp:226