e4b8ab4586
Made the network component shared between two firmawre
13 lines
374 B
C++
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);
|