Files
Calendink/components/network/include/network.hpp
T
Patedam e4b8ab4586 Added client folder for the client side of the project
Made the network component shared between two firmawre
2026-03-17 21:09:17 -04:00

13 lines
374 B
C++

#pragma once
#include "esp_err.h"
#include <cstdint>
esp_err_t connect_ethernet(bool blockUntilIPAcquired);
void disconnect_ethernet();
esp_err_t check_ethernet_connection(uint32_t timeoutSeconds);
esp_err_t connect_wifi(const char *ssid, const char *password, bool blockUntilIPAcquired);
void disconnect_wifi();
esp_err_t check_wifi_connection(uint32_t timeoutSeconds);