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 Build Error with rawliteral JS Code included in Sketch (Read 713 times)
Simon@Visual Micro
Administrator
*****
Offline


Posts: 2441
Joined: Feb 13th, 2019
Build Error with rawliteral JS Code included in Sketch
Dec 1st, 2020 at 1:14pm
Print Post  
There is a sketch posted on GitHub at https://github.com/RuiSantosdotme/ESP32-Course/blob/master/code/WiFi_Web_Server_...

This sketch illustrates the use of an asynchronous web server using an ESP32 module.

I have pasted it into the Arduino IDE and it compiles, uploads and works OK.

However, using exactly the same sketch in Visual Micro/Visual Studio, the compiler reports an error:

ESP32DHTAsync.ino: 30:1: error: 'setInterval' does not name a type

   Read temperature as Celsius (the default)

ESP32DHTAsync.ino: 31:1: error: 'setInterval' does not name a type

   float t = dht.readTemperature()

Error compiling project sources

Build failed for project 'ESP32DHTAsync'
  

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


Posts: 2441
Joined: Feb 13th, 2019
Re: Build Error with rawliteral JS Code included in Sketch
Reply #1 - Dec 1st, 2020 at 1:15pm
Print Post  
This is resolved in the latest release 20.09.10.17 which is available from the below board:
https://www.visualmicro.com/forums/YaBB.pl?board=VS_ARDUINO_EXT_RELEASES
  
Back to top
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint