Problem linking ScanNetworks on portenta H7


I just bought a portenta H7 board and succeed to run an ethernet web server reading a HIH8000 humidity temperature sensor on I2C. I wanted to migrate it to the Wifi interface and just try to compile the ScanNetworks example. The compilation is fine but the link fails on:
undefined reference to `arduino::WiFiClass::macAddress(unsigned char*)'

Any idea which library I should install ?

Thank you in advance

Hi @rpcdaqboss. I'm going to ask you to post some additional information that might help us to identify the problem.

Please do this:

  1. When you encounter an error, you'll see a button on the right side of the orange bar in the Arduino IDE: Copy error messages. Click that button.
  2. Open a forum reply here by clicking the Reply button.
  3. Click the </> icon on the post composer toolbar. This will add the forum's code block markup (```) to your reply to make sure the error messages are correctly formatted.
    Code block
  4. Press Ctrl+V. This will paste the compilation output into the code block.
  5. Move the cursor outside of the code block markup before you add any additional text to your reply.
  6. Click the Reply button to post the output.

Arduino: 1.8.16 (Linux), Board: "Arduino Portenta H7 (M7 core), 1MB M7 + 1MB M4"

/home/mirabito/.arduino15/packages/arduino/hardware/mbed_portenta/2.5.2/libraries/SocketWrapper/src/utility/http_parser/http_parser.c: In function 'http_parser_execute':
/home/mirabito/.arduino15/packages/arduino/hardware/mbed_portenta/2.5.2/libraries/SocketWrapper/src/utility/http_parser/http_parser.c:1817:31: warning: this statement may fall through [-Wimplicit-fallthrough=]
parser->upgrade = 1;
/home/mirabito/.arduino15/packages/arduino/hardware/mbed_portenta/2.5.2/libraries/SocketWrapper/src/utility/http_parser/http_parser.c:1819:13: note: here
case 1:
/home/mirabito/.arduino15/packages/arduino/hardware/mbed_portenta/2.5.2/libraries/SocketWrapper/src/utility/http_parser/http_parser.c: In function 'http_parser_parse_url':
/home/mirabito/.arduino15/packages/arduino/hardware/mbed_portenta/2.5.2/libraries/SocketWrapper/src/utility/http_parser/http_parser.c:2376:18: warning: this statement may fall through [-Wimplicit-fallthrough=]
found_at = 1;
/home/mirabito/.arduino15/packages/arduino/hardware/mbed_portenta/2.5.2/libraries/SocketWrapper/src/utility/http_parser/http_parser.c:2379:7: note: here
case s_req_server:
sketch/ScanNetworks.ino.cpp.o: In function printMacAddress()': /home/mirabito/Arduino/ScanNetworks/ScanNetworks.ino:56: undefined reference to arduino::WiFiClass::macAddress(unsigned char*)'
collect2: error: ld returned 1 exit status
Multiple libraries were found for "WiFi.h"
Used: /home/mirabito/.arduino15/packages/arduino/hardware/mbed_portenta/2.5.2/libraries/WiFi
Not used: /home/mirabito/arduino-1.8.16/libraries/WiFi
Not used: /home/mirabito/Arduino/libraries/WiFiEspAT
exit status 1
Error compiling for board Arduino Portenta H7 (M7 core).

This report would have more information with
"Show verbose output during compilation"
option enabled in File -> Preferences.

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.