How to Share data between devices

Hello. Sorry my stupidity, but this for some reason is not working for me.

int current = param.asInt();

Serial monitor shows other values, but not line with (current).
What i did wrong?

Hello. What hardware do you have? What does serial print?

I have two Wemos D1 mini. One of them is sending temp to Blynk. I want to read that value on another Wemos. But i have no reading at Serial.println. I have line Serial.print in my code. I can read that, but that is being printed in one line, so no “ln” at all.

1 Like

What is V6 and what do you think this code should do?

V6 is temperature value stored in Blynk from another Wemos.

#include <ESP8266WiFi.h>
#include <BlynkSimpleEsp8266.h>

#include <SimpleTimer.h>

SimpleTimer timer;

char auth[] = "*************ac14cad9e124d91a09e80a2";
char ssid[] = "*******on";
char pass[] = "********ne";

#include <SoftwareSerial.h>
#include <Nextion.h>

SoftwareSerial nextion(2, 0);

Nextion myNextion(nextion, 9600); 

  int current = param.asInt();


void OnTime(void) {
  digitalWrite(heat, HIGH);
  myNextion.setComponentText("Heat.t2", "on");

int setpoint = myNextion.getComponentValue("Heat.n1");
Blynk.virtualWrite(V1, setpoint);


void OffTime(void) {
  digitalWrite(heat, LOW);
    myNextion.setComponentText("Heat.t2", "off");

void setup() {

    Blynk.begin(auth, ssid, pass);
  pinMode(heat, OUTPUT);

  timer.setInterval(1000 * 1200, OnTime);
  timer.setInterval(1000 * 600, OffTime);
void loop() {;;
  int setpoint = myNextion.getComponentValue("Heat.n1");


  if (setpoint >= myNextion.getComponentValue("Heat.n0") + 1) {

I want V6 to be assigned as int current, so i can send it to nextion.

Then you need to study the docs for the Bridge widget.

I was pretty sure, that two devices can be used together with the same token. Thank you for advice, looking in to it.

physically it is possible to use 2 hw with same token, but not recommended and not good practice, because the results could be unpredictable.

1 Like

While waiting a token for another device(20 minutes now), i tried to check that, and yes, i can get values from both wemos on Blynk, but that`s all, they dont see each other.

Why does it take so long to get a token?

it shouldn’t. usually it is instant. maybe lousy isp or network? did you refresh the email page?
but anyway, you have the option in project settings to manually copy the tokens.

If you share the same token with two different devices… assuming the server accepts that, each will basically mirror the other… thus NO sharing of data happens.

Setting up as two separate devices in same project, each with it’s own token, will allow individual control and feedback, but again sharing between them will still require Bridge since while each has it’s own set of vPins (i.e. V0 on each… and so on) there is no other way (in software) of designating the device the vPin is referenced to, and I don’t think the App directly supports cross device data transfer either?

So basicly… use Bridge.

Thank you. I am receiving my values now. Be ready, tomorrow i am going to ask more dumb questions. Too late tonight.