Serial Blynk

. Add details :
• Hardware model + communication type. : Arduino Mega Serial
Library 1.0.0

/* Download latest Blynk library here:
    https://github.com/blynkkk/blynk-library/releases/latest

  Blynk is a platform with iOS and Android apps to control
  Arduino, Raspberry Pi and the likes over the Internet.
  You can easily build graphic interfaces for all your
  projects by simply dragging and dropping widgets.

    Downloads, docs, tutorials: http://www.blynk.cc
    Sketch generator:           http://examples.blynk.cc
    Blynk community:            http://community.blynk.cc
    Follow us:                  http://www.fb.com/blynkapp
                                http://twitter.com/blynk_app

  Blynk library is licensed under MIT license
  This example code is in public domain.

 *************************************************************
  

  This sketch shows how to read values from Virtual Pins

  App project setup:
    Slider widget (0...100) on Virtual Pin V1
 *************************************************************/

/* Comment this out to disable prints and save space */
#define BLYNK_PRINT Serial1


#include <BlynkSimpleStream.h>

// You should get Auth Token in the Blynk App.
// Go to the Project Settings (nut icon).
char auth[] = "YourAuthToken";

// This function will be called every time Slider Widget
// in Blynk app writes values to the Virtual Pin V1
BLYNK_WRITE(V1)
{
  int pinValue = param.asInt(); // assigning incoming value from pin V1 to a variable

  // process received value
}

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

  // Blynk will work through Serial
  // Do not read or write this serial manually in your sketch
  Serial.begin(9600);
  Blynk.begin(Serial, auth);
}

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

I am Getteing this

In file included from C:\Users\dell\OneDrive\Documents\Arduino\libraries\Blynk\src/Blynk/BlynkApi.h:38:0,

                 from C:\Users\dell\OneDrive\Documents\Arduino\libraries\Blynk\src/BlynkApiArduino.h:14,

                 from C:\Users\dell\OneDrive\Documents\Arduino\libraries\Blynk\src/Adapters/BlynkSerial.h:18,

                 from C:\Users\dell\OneDrive\Documents\Arduino\libraries\Blynk\src/BlynkSimpleStream.h:18,

                 from C:\Users\dell\OneDrive\Documents\Arduino\sketch_jul09a\sketch_jul09a.ino:31:

C:\Users\dell\OneDrive\Documents\Arduino\libraries\Blynk\src/Blynk/BlynkConsole.h:20:10: fatal error: functional: No such file or directory

 #include <functional>

          ^~~~~~~~~~~~

compilation terminated.

exit status 1
Error compiling for board Arduino Mega or Mega 2560.
Invalid library found in C:\Users\dell\OneDrive\Documents\Arduino\libraries\ArduinoJson: no headers files (.h) found in C:\Users\dell\OneDrive\Documents\Arduino\libraries\ArduinoJson
Invalid library found in C:\Users\dell\OneDrive\Documents\Arduino\libraries\ArduinoJson: no headers files (.h) found in C:\Users\dell\OneDrive\Documents\Arduino\libraries\ArduinoJson

If this is meant for use with Blynk 0.1 then downgrade to Blynk library version 0.6.1

Pete.

new blynk

No Template ID and name in your sketch!

Read this:

You’ll probably need to edit the Blynk USB script to use the new Blynk server too.

Pete.

added template id and already followedc steps in blynkyoutube tutorial

Is that a tutorial written for Blynk 2.0 ?

Is your compiler error fixed now then?

Pete.

no. it was uploaded n 2017
no soln

I have no idea what this means in practice.

Did you follow the link I provided?
Did you either edit your existing BlynkConsole.h file, or install the pre-release library?
What compiler messages are you getting now?
What changes do you intend to make to the USB script to make it Blynk 2.0 compliant?

If you want help then you have to make an effort to provide understandable information.

Pete.

no changes in both

I asked you 4 questions and you reply with four words…

Pete.

Yes. But can’t understand. I am only 12 years old

No

Same as posted above

I didn’t make any changes