Error with compiling with Arduino IDE and Arduino yun board

I am getting an error compiling a program that I have used successfully in the past. It is suppose to connect an Arduino Yun to the Blynk 2.0 platform, but I get the following error.
Documents/Arduino/libraries/Blynk/src/BlynkSimpleYun.h:77:2: error: #endif without #if
#endif
^~~~~
exit status 1

Compilation error: exit status 1

I have reinstalled the libraries and still get the same error. I have also
downgraded from 1.3.2 to an earlier version but that did not resolve the issue. Any advice would be greatly appreciated.

#define BLYNK_TEMPLATE_ID "xxxx"
#define BLYNK_TEMPLATE_NAME "xxxx"
#define BLYNK_AUTH_TOKEN "xxxxxx";

#define BLYNK_PRINT Serial

#include <Bridge.h>
#include <BlynkSimpleYun.h>

void setup()
{
  // Debug console
  Serial.begin(9600);

  Blynk.begin(BLYNK_AUTH_TOKEN, "blynk.cloud", 80);
}

void loop()
{
  Blynk.run();
}


@vshymanskyy it looks like line 71 of BlynkSimpleYun.h should be #else rather than #endif

Pete.

3 Likes

It worked! Thanks so much!

1 Like

Thanks. Pushed the fix, and also verified all the other BlynkSimple* headers

2 Likes

Hello ,
I create a button on my template through laptop but when I come to my mobile to add LCD display they don’t show button widget I add LCD widget using mobile app and come back to laptop and blynk web page I am unable to see the LCD widget but I clearly see the data stream that I created for my LCD so please help me to fix this issue. Why I go to mobile app is merely because I am not seen the LCD widget on web page.

The mobile app and web console dashboards have different widgets available, and are designed independently of each other.
The behaviour that you are seeing is normal.

In future, please create a new topic rather than hijacking an existing topic which is totally unrelated to the subject that you want to discuss.

Pete.