mirror of
https://github.com/jomjol/AI-on-the-edge-device.git
synced 2025-12-09 21:17:06 +03:00
.
This commit is contained in:
@@ -725,8 +725,8 @@ string RundeOutput(double _in, int _anzNachkomma)
|
|||||||
|
|
||||||
|
|
||||||
string getMac(void) {
|
string getMac(void) {
|
||||||
uint8_t *macInt;
|
uint8_t macInt[6];
|
||||||
char macFormated[6*2 + 5 + 1];
|
char macFormated[6*2 + 5 + 1]; // AA:BB:CC:DD:EE:FF
|
||||||
|
|
||||||
esp_read_mac(macInt, ESP_MAC_WIFI_STA);
|
esp_read_mac(macInt, ESP_MAC_WIFI_STA);
|
||||||
sprintf(macFormated, "%02X:%02X:%02X:%02X:%02X:%02X", macInt[0], macInt[1], macInt[2], macInt[3], macInt[4], macInt[5]);
|
sprintf(macFormated, "%02X:%02X:%02X:%02X:%02X:%02X", macInt[0], macInt[1], macInt[2], macInt[3], macInt[4], macInt[5]);
|
||||||
|
|||||||
Reference in New Issue
Block a user