summaryrefslogtreecommitdiff
path: root/minion/src/gymnasiearbete.cpp
diff options
context:
space:
mode:
authorHampusM <hampus@hampusmat.com>2022-05-30 20:27:44 +0200
committerHampusM <hampus@hampusmat.com>2022-05-30 20:27:44 +0200
commit7afb8aedd6f3553aa0ec138373aea18068abd2f8 (patch)
treef5d806be8c8564bdf082602befb8f4e981c67196 /minion/src/gymnasiearbete.cpp
parentfddfa1a7f48b5fa0dd5a3746206952581ef34128 (diff)
feat(minion): add print MAC address
Diffstat (limited to 'minion/src/gymnasiearbete.cpp')
-rw-r--r--minion/src/gymnasiearbete.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/minion/src/gymnasiearbete.cpp b/minion/src/gymnasiearbete.cpp
index 54e8d50..d2a970b 100644
--- a/minion/src/gymnasiearbete.cpp
+++ b/minion/src/gymnasiearbete.cpp
@@ -80,6 +80,11 @@ void setup()
Serial.print(F("IP address: "));
Serial.println(wifi_module.get_local_ip(local_ip));
+ char mac_address[MAX_NETWORK_MODULE_RESPONSE_LENGTH] = "";
+
+ Serial.print(F("MAC address: "));
+ Serial.println(wifi_module.get_mac_address(mac_address));
+
wifi_module.set_multiple_connections_enabled(true);
delay(MILLIS_IN_SECOND);