Sharing value of device 1 into device 2

#1

hi, any body know How can I send a value of a data from one device to another device
for example from esp8266(device1) to another esp8266(device2). sensor 1 is attach to device 1 and lcd is attach to device 2.
i have to receive value of temp in device2 from device 1 and displaying in lcd that attach to device 2.

0 Likes

#2

i am also facing this issue i need to send data of my website clashoflightsworld

0 Likes

#3

You could do a query from the second device, although the mqtt subscription for all updates is probably better.

2 Likes

#4

@jameszahary maybe he wants to do it more easy way by just using cayenne Arduino MQTT library. we will look into this whether we can add this feature of sending data from one device to another.

2 Likes

#5

Good morning, the first thing that is appreciated all the work and effort made. Is there already a simple solution to share data between two nodes?

0 Likes

#6

not yet, but you can use the above method or if you are familiar with node-red then you can use it.

0 Likes

#7

Did you manage to add a function?

0 Likes

#8

@gtf-crimea which function are you referring to?

0 Likes

#9

Thank you very much for your help. I’m not very familiar with Node Red, but I’m going to try. It would be a good future option that could be added, for example with an if-then trigger that will copy the value of device 1 in device 2 and run every time it changes.

0 Likes

#10

to get started have a look at this awesome tutorial by @adam on node-red with cayenne. Using Node-RED as a Local Fallback Server

0 Likes

#11

I also need this function. For example, there are two ESP8266 in the project, the first is connected to the sensors and send data using Cayenne.virtualWrite(0, humidity);
Cayenne.celsiusWrite(1, temperature);,and the second is connected to the display and receives the same data using CAYENNE_IN (0) { humidToDisp = getValue.asInt();
}
CAYENNE_IN (1) { tempToDisp = getValue.asInt();
}

0 Likes

#12

there is no function yet that can do it.

0 Likes

#13
0 Likes

#14

As Shramik mentioned you can do this using my node-red post.

1 Like