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 Bug VisualMicro with ESP8266 (v2.3.0) and mDNS (Read 3017 times)
Marcel
Newbies
*
Offline


Posts: 2
Location: Munich
Joined: Jul 21st, 2016
Bug VisualMicro with ESP8266 (v2.3.0) and mDNS
Jul 21st, 2016 at 8:26pm
Print Post  
when I use mDNS library I get the following error:

Compiling 'BasicOTA' for 'NodeMCU 1.0 (ESP-12E Module)'
ESP8266mDNS.cpp:In member function 'void MDNSResponder::enableArduino(uint16_t, bool)
:ESP8266_NODEMCU' was not declared in this scope
ESP8266mDNS.cpp:note  in expansion of macro 'ARDUINO_BOARD
:addServiceTxt("arduino", "tcp", "board", ARDUINO_BOARD)
Error compiling libraries



if i use the same code at Arduino IDE (1.6.9) it works without problems. 


can someone help me?
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12191
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Bug VisualMicro with ESP8266 (v2.3.0) and mDNS
Reply #1 - Jul 21st, 2016 at 9:19pm
Print Post  
I have replicated the issue. It is an issue introduced into the latest esp8266 tool chain v2.3.0. Was not a problem in previous releases.

The ESP8266 definitions are wrong for windows users. The Arduino IDE runs in an emulated Linux/Java environment so doesn't suffer from the same issue. (I see on google other plugin authors encountering the same issue)

For the next release I will look at adding a hack that fixes up incorrect defs. In the meantime you can fix it yourself by altering 3 lines of the definition in the text file called platform.txt

The platform.txt can be found at:-
Code
Select All
C:\Users\[your xt 



In the platform.txt change any occurrences of:-

Code
Select All
-DARDUINO_BOARD="{build.board}" 



TO :-

Code
Select All
-DARDUINO_BOARD=\"{build.board}\" 



Notice the backslash has been added before each double quote.

After changing the config, Restart the Ide or click the Rescan button in the Micro Explorer window

Thanks for the report. Esp8266 certainly like to make things hard  Smiley

« Last Edit: Jul 21st, 2016 at 10:06pm by Tim@Visual Micro »  
Back to top
IP Logged
 
Marcel
Newbies
*
Offline


Posts: 2
Location: Munich
Joined: Jul 21st, 2016
Re: Bug VisualMicro with ESP8266 (v2.3.0) and mDNS
Reply #2 - Jul 21st, 2016 at 10:02pm
Print Post  
Thank you for the fast answer! 

It works perfectly!  Smiley
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint