Before logging an issue, please update to the latest release of Visual Micro from the Downloads Page.

When Logging a Support Issue in the Forum, please ensure you have also:-

  • Enabled vMicro > Compiler > Show Build Properties
  • Re-Compile your program with these settings enabled
 
Save the new Output to a Text File and....
  • Click the Reply button and attach as .txt file OR
  • Click here to Email us with the file attached, and a link to your post
Support requests without the output above may be impossible to answer, so please help us to help you
 
Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic Arduino R4 WiFi (Read 148 times)
jpbbricole2
Newbies
*
Offline


Posts: 7
Joined: Dec 2nd, 2021
Arduino R4 WiFi
Jul 24th, 2025 at 3:30pm
Print Post  
Hi!
I have a sketch for Arduino R4 WiFi. This sketch compiles fine in the Arduino IDE.
In Visual Studio, I get this error:
fatal error: WiFiS3.h: No such file or directory
#include "WiFiS3.h"
Why?
I only get this kind of error on R4 WiFi.

Thanks in advance.
jpbbricole
  
Back to top
 
IP Logged
 
Simon@Visual Micro
Administrator
*****
Offline


Posts: 2758
Joined: Feb 13th, 2019
Re: Arduino R4 WiFi
Reply #1 - Jul 24th, 2025 at 3:33pm
Print Post  
Thanks for the report.

Can you enable the below options in Visual Micro:
  • vMicro > Compiler > Verbose
  • vMicro > Compiler > Show Build Properties


Then perform a build on the affected project, and attach the complete output as a text file for us to review?

If you can enable the File > Preferences > Verbose Output During "Compile" in the Arduino IDE and attach their log as well it will help greatly.
  
Back to top
IP Logged
 
jpbbricole2
Newbies
*
Offline


Posts: 7
Joined: Dec 2nd, 2021
Re: Arduino R4 WiFi
Reply #2 - Jul 25th, 2025 at 7:35am
Print Post  
Hi Simon

Thank you for your prompt response!
I'm attaching the requested files.

Have a nice day!
jpbbricole
  

Please Register or Login to the Forum to see File Attachments
Back to top
 
IP Logged
 
Simon@Visual Micro
Administrator
*****
Offline


Posts: 2758
Joined: Feb 13th, 2019
Re: Arduino R4 WiFi
Reply #3 - Jul 25th, 2025 at 9:40am
Print Post  
Thanks for the files, and we have replicated the issue on the same 2024.0722.05 version.

If you update Visual Micro to the latest version available from our Downloads Page, the sketch will compile as expected:
https://www.visualmicro.com/page/Arduino-Visual-Studio-Downloads.aspx

If for some reason you do not want to upgrade, you should be able to workaround the problem by adding the #include "WiFiS3.h" above #include <ArduinoBLE.h> in your INO sketch.
  
Back to top
IP Logged
 
jpbbricole2
Newbies
*
Offline


Posts: 7
Joined: Dec 2nd, 2021
Re: Arduino R4 WiFi
Reply #4 - Jul 25th, 2025 at 10:24am
Print Post  
I updated Visual Micro, with no changes, but the second option:

by adding the #include "WiFiS3.h" above #include <ArduinoBLE.h> in your INO sketch.

Works fine, thank you very much!

Have a nice day!
jpbbricole
« Last Edit: Jul 25th, 2025 at 1:32pm by jpbbricole2 »  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint