Need help getting feedback status of external switching

@Dmitriy no such link is opening from Github…:frowning: . Facing problem to check status. I am using a two way switch and a relay(i.e. controlled by blynk). When blynk switch is on and physical switch is off, then light is off but blynk switch remains on, that makes a problem.Please reply As soon as possible.


  code:/**************************************************************
 * 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.
 *
 *  
 *
 * Blynk library is licensed under MIT license
 * This example code is in public domain.
 *
 **************************************************************
 * This example runs directly on ESP8266 chip.
 *
 * Note: This requires ESP8266 support package:
 *   https://github.com/esp8266/Arduino
 *
 * Please be sure to select the right ESP8266 module
 * in the Tools -> Board menu!
 *
 * Change WiFi ssid, pass, and Blynk auth token to run :)
 *
 **************************************************************/

#define BLYNK_PRINT Serial    // Comment this out to disable prints and save space
#include <ESP8266WiFi.h>
#include <BlynkSimpleEsp8266.h>

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

// Your WiFi credentials.
// Set password to "" for open networks.
char ssid[] = "YourNetworkName";
char pass[] = "YourPassword";

void setup()
{
  Serial.begin(9600);
  Blynk.begin(auth, ssid, pass);
}

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

@subhajitm01 You were asking for assistance on a post almost a year old… things change in weeks let alone that long :wink:

I have moved your issue into it’s own topic and formatted your code properly for viewing… please use this method in the future.

As for current examples, we now have the Sketch Builder, link is at the top right of this page.

http://examples.blynk.cc/?board=ESP8266&shield=ESP8266%20WiFi&example=More%2FSync%2FButtonInterrupt

http://examples.blynk.cc/?board=ESP8266&shield=ESP8266%20WiFi&example=More%2FSync%2FButtonPoll

Umm… after looking closer at your sketch… there is nothing there? How are you controlling this relay… direct pin manipulation in the App? If so, then you are not going to have an easy way of getting feedback without code and perhaps additional sensors.

Redundant topic, user had also created another.