Well, I don’t really need devices sending info to each other- I’m just looking to send a number from device A to a virtual pin (a dedicated v-pin specifically for this purpose), and use device B to take that value and data log it.
For some reason, I’m not able to get this to work between my yun and photon…
Here’s my code on each device, and I’ll bold the parts of the yun that are the most important:
// This #include statement was automatically added by the Particle IDE.
#include "blynk/BlynkSimpleParticle.h"
char auth[] = "xxx";
int humidity;
void setup() {
Blynk.begin(auth);
}
//Data Logging from Blynk Virtual Pins
BLYNK_WRITE(10) {
int setting = param.asInt();
humidity = setting;
}
//Rewriting Value to VPin 11 for testing purposes.
BLYNK_READ(11) {
Blynk.virtualWrite(11, humidity);
}
void loop() {
Blynk.run();
}
Any thoughts? And I should also note that the same Blynk sketch is detecting both devices (it says a device is off when I upload new code to either), and I am able to send values originating from my photon to the same blynk sketch as the yun… I just can’t do the thing I want to do .