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 [2]  Send TopicPrint
Very Hot Topic (More than 25 Replies) Blynk, ESP8266 NodeMCU use with Visual Micro (Read 20333 times)
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12071
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Blynk, ESP8266 NodeMCU use with Visual Micro
Reply #20 - Nov 22nd, 2017 at 12:58pm
Print Post  
Well let's work without debug until you clear up the serial issues.

You should see a "loop running" in the serial monitor every 5 seconds. I don't see that in your screen shot. In fact it looks like some has tried to write binary or non ascii to the serial output.
  
Back to top
WWW  
IP Logged
 
arduinoUser2
Junior Member
**
Offline


Posts: 41
Joined: Dec 30th, 2015
Re: Blynk, ESP8266 NodeMCU use with Visual Micro
Reply #21 - Nov 22nd, 2017 at 2:31pm
Print Post  
Tim,

I have removed all the breakpoints from the code, just to eliminate any possible issue.  The compiler has been set to "Release".  Still, no output from the Serial print commands.

I know the loop() is running since the other part of the Blynk application is on an android tablet.  The display on the tablet changes as particular GPIO pins on the NodeMCU have their digital states changed.  That can only happen if the loop() is looping.

Current screenshot image is attached.
  

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


Posts: 12071
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Blynk, ESP8266 NodeMCU use with Visual Micro
Reply #22 - Nov 22nd, 2017 at 7:27pm
Print Post  
pls email your code to info[at]visualmicro.com

Thanks
  
Back to top
WWW  
IP Logged
 
arduinoUser2
Junior Member
**
Offline


Posts: 41
Joined: Dec 30th, 2015
Re: Blynk, ESP8266 NodeMCU use with Visual Micro
Reply #23 - Nov 22nd, 2017 at 9:10pm
Print Post  
Sent, per your request.
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12071
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Blynk, ESP8266 NodeMCU use with Visual Micro
Reply #24 - Nov 22nd, 2017 at 10:43pm
Print Post  
please generate an autoCode for an esp8266 HUZZA so i can test


Thanks
« Last Edit: Nov 22nd, 2017 at 10:44pm by Tim@Visual Micro »  
Back to top
WWW  
IP Logged
 
arduinoUser2
Junior Member
**
Offline


Posts: 41
Joined: Dec 30th, 2015
Re: Blynk, ESP8266 NodeMCU use with Visual Micro
Reply #25 - Nov 22nd, 2017 at 10:49pm
Print Post  
Tim,

I do not understand what you are asking for.  What is autocode for an esp8266 HUZZA?
  
Back to top
 
IP Logged
 
arduinoUser2
Junior Member
**
Offline


Posts: 41
Joined: Dec 30th, 2015
Re: Blynk, ESP8266 NodeMCU use with Visual Micro
Reply #26 - Nov 22nd, 2017 at 11:29pm
Print Post  
Tim,

I guessed that you want the .bin files complied of my project for the Huzzah ESP8266 board.  I emailed them a few minutes ago to the address you previously provided.
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12071
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Blynk, ESP8266 NodeMCU use with Visual Micro
Reply #27 - Nov 23rd, 2017 at 6:38pm
Print Post  
I need an authcode for the blynk service and the one in your code was rejected I will try your email over the next day or so thanks.
  
Back to top
WWW  
IP Logged
 
arduinoUser2
Junior Member
**
Offline


Posts: 41
Joined: Dec 30th, 2015
Re: Blynk, ESP8266 NodeMCU use with Visual Micro
Reply #28 - Nov 27th, 2017 at 2:48pm
Print Post  
Tim,

FWIW, Blynk has some virtual items which will appear in the Android control portion of the system.  I placed virtual LEDs in the code where I also had Serial.println() statements.  The LEDs all lit when that portion of the code was called, but I never saw any response from the print functions.  And that was for "Release" compile.  Blynk also has print-like functions, which again display on the Android side.  These all work in my application.
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12071
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Blynk, ESP8266 NodeMCU use with Visual Micro
Reply #29 - Nov 27th, 2017 at 9:24pm
Print Post  
Does all the serial show in the arduino ide?
  
Back to top
WWW  
IP Logged
 
arduinoUser2
Junior Member
**
Offline


Posts: 41
Joined: Dec 30th, 2015
Re: Blynk, ESP8266 NodeMCU use with Visual Micro
Reply #30 - Nov 27th, 2017 at 10:28pm
Print Post  
Other than the Blynk connect and welcome messages, there is no Serial printing coming from the straight Arduino IDE.  I used exactly the same, unchanged .ino file which I have been using with Visual Studio and Visual Micro.

The Blynk people say that Blynk uses the Serial print functions internally.  My code has a required line,
Code (C++)
Select All
#define BLYNK_PRINT Serial 

which just tells Blynk to use the Serial output mechanism.  Otherwise, they claim that their stuff could not be causing the problem.
  
Back to top
 
IP Logged
 
arduinoUser2
Junior Member
**
Offline


Posts: 41
Joined: Dec 30th, 2015
Re: Blynk, ESP8266 NodeMCU use with Visual Micro
Reply #31 - Dec 1st, 2017 at 1:53pm
Print Post  
Tim,

Has your investigation uncovered anything?
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12071
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Blynk, ESP8266 NodeMCU use with Visual Micro
Reply #32 - Dec 1st, 2017 at 9:06pm
Print Post  
Hi,

Sorry I have been tied up and hope to look at it during the next week or two.

If you are unable to build in the meantime you can enable file>preferences>external editor in the arduino ide. It makes it easy to edit in VS but build/upload via the arduino ide
  
Back to top
WWW  
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12071
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Blynk, ESP8266 NodeMCU use with Visual Micro
Reply #33 - Dec 23rd, 2017 at 3:45pm
Print Post  
I tried the Blynk example and it's working okay for me. It works both with and without debug enabled.

I was testing with a huzza that has less pins. I found the board would crash a lot if I attempted to set the pinMode for invalid pins. The board is obviously sensitive to using pinMode on pins that do not exist. It might be unrelated but I suggest that you do not use pinMode on pins you are not using. 

I was only testing so i hard coded leftDoorOpen = true and commented the pinModes.Otherwise test was same as your but without the your debug #define.


Code
Select All
// Set GPIO pin modes
	//pinMode(Unused10, INPUT_PULLUP);
	//pinMode(Unused09, INPUT_PULLUP);

	//pinMode(Unused16, INPUT);
	//pinMode(leftDoorInput, INPUT_PULLUP);
	//pinMode(rightDoorInput, INPUT_PULLUP);
	//pinMode(Unused00, INPUT);
	//pinMode(Unused02, INPUT);
	//pinMode(backDoorInput, INPUT_PULLUP);
	//pinMode(Unused12, INPUT_PULLUP);
	//pinMode(Unused13, INPUT_PULLUP);
	//pinMode(Unused15, INPUT_PULLUP);
	//pinMode(Unused03, INPUT_PULLUP);
	//pinMode(Unused01, INPUT_PULLUP); 

« Last Edit: Jan 28th, 2018 at 2:28am by Tim@Visual Micro »  
Back to top
WWW  
IP Logged
 
arduinoUser2
Junior Member
**
Offline


Posts: 41
Joined: Dec 30th, 2015
Re: Blynk, ESP8266 NodeMCU use with Visual Micro
Reply #34 - Jan 6th, 2018 at 11:16pm
Print Post  
Tim,

Sorry for my late reply.

All the pins in my code exist.  I used the pinMode function to set pins on the NodeMCU that I am not using in my project since it sets the states of those pins to a definite logic level.  I did not want those pins floating.  If I do not use this method, I would have to add a lot of hardware to the project to set those pins at HIGH or LOW.

I will try the debug mode again in Visual Micro and let you know what happens.
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1 [2] 
Send TopicPrint