Push blynk notify

class BlynkEthernet has no member named notify shown when simulate the code of blynk push notification

Can you show us the code?

#define BLYNK_PRINT Serial
#include <SPI.h>
#include <Ethernet.h>
#include <BlynkSimpleEthernet.h>
#include <SimpleTimer.h>

char auth[] = "215a51c8d8824650a1051ea19308add3";
IPAddress server_ip (200, 130, 130, 93);  //

// Mac address should be different for each device in your LAN
byte arduino_mac[] = { 0xDE, 0xED, 0xBA, 0xFE, 0xFE, 0xED };
IPAddress arduino_ip (200 ,  130,  130,  119);
IPAddress dns_ip     (  1,   9,   1,   9);
IPAddress gateway_ip ( 200,   130,   130,   201);
IPAddress subnet_mask(255, 255, 255,   0);

SimpleTimer timer;

void setup()
   Blynk.begin(auth, server_ip, 8442, arduino_ip, dns_ip, gateway_ip, subnet_mask, arduino_mac);

  while (Blynk.connect() == false) {
    // Wait until connected

  // Notify immediately on startup
  Blynk.notify("Device started");

  // Setup a function to be called every minute
  timer.setInterval(60000L, notifyUptime);

  // Setup notification button on pin 2
  pinMode(2, INPUT_PULLUP);
  // Attach pin 2 interrupt to our handler
  attachInterrupt(digitalPinToInterrupt(2), notifyOnButtonPress, CHANGE);

void notifyUptime()
  long uptime = millis() / 60000L;

  // Actually send the message.
  // Note:
  //   We allow 1 notification per minute for now.
  Blynk.notify(String("Running for ") + uptime + " minutes.");

void notifyOnButtonPress()
  // Invert state, since button is "Active LOW"
  int isButtonPressed = !digitalRead(2);
  if (isButtonPressed) {
    BLYNK_LOG("Button is pressed.");

    //Blynk.notify("Yaaay... button is pressed!");

void loop()

I think you can’t use Blynk.notify in the setup, I think Blynk.run() has to be called first, but I’m not sure. What happens if you remove it from the setup() ?

still same…do you have the successful coding of this kind notify??

Nvmnd, not the issue… I have no idea where it goes wrong.

I think it’s a typo somewhere, but I can’t find it.

Are you using Blynk 0.3.1. or 0.3.3?
Please show the sketch again in code format not text format (use </> icon).

Is your project activated? Can you send other commands from Bylnk app?

Try replacing


Blynk.notify("Running for " + String(uptime, DEC) + " minutes.");

You are replying to a topic that is over a year old :wink: