2ced2f0b0a
Updated network component to add get mac address
22 lines
619 B
C++
22 lines
619 B
C++
#pragma once
|
|
|
|
#include <cstdint>
|
|
|
|
#include "esp_err.h"
|
|
|
|
void initialize_network();
|
|
void shutdown_network();
|
|
|
|
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);
|
|
|
|
// Get the MAC address of the active network interface (WiFi STA).
|
|
// mac_out must point to a buffer of at least 6 bytes.
|
|
esp_err_t get_mac_address(uint8_t *mac_out);
|