Hi Pete,
Here is my code for Device B:
V5 and V6 are virtual pins with data from Device A. In the Blynk app I can see data of V5 and V6 using the value display widget. But i am not able to store it as a parameter and send it to the Lcd display
I get an error ““Level” is not declared in scope” at the lcd.print(Level) line of code
/**************************************************************
Blynk Bridge - Communication between ESP8266
Sketch code for the receiver module (module which is controlled)
www.geekstips.com
**************************************************************/
#define BLYNK_PRINT Serial
#include <ESP8266WiFi.h>
#include <BlynkSimpleEsp8266.h>
#include <Wire.h> //includes outside library allowing communication over i2c devices
#include <LiquidCrystal_I2C.h> //includes outside library allowing interfacing with LCD
// Set the LCD address to 0x27 for a 16 chars and 2 line display
LiquidCrystal_I2C lcd(0x27, 16, 2);
char auth[] = "xxxxxxxxxxxxxxxx";
char ssid[] = "xxxxxxx";
char pass[] = "xxxxxx";
BLYNK_WRITE(V5) {
int pinData = param.asInt();
}
BLYNK_WRITE(V6) {
int Level = param.asInt();
}
void setup(){
Wire.begin(12,13);
Serial.begin(9600);
Blynk.begin(auth, ssid, pass);
lcd.begin();
lcd.backlight();
lcd.setCursor(0,0);
lcd.print("DWS level: ");
lcd.print(Level);
lcd.print(" %");