BLYNK
HOME       📲 GETTING STARTED       📗 DOCS       ❓HELP CENTER       👉 SKETCH BUILDER

Bridge Issue


#1

Hi @Dmitriy, I’m wondering if there are plans to introduce a bridge1.setProperty command? Would be very handy for me at the moment.


#2

Any Blynker’s out there in support of a bridge1.setProperty command?


#3

Hello. We do not plan to extend the current bridge widget. Sorry. It will be replaced with new Rule Engine soon that doesn’t need coding on the hardware side.


#4

OK thanks for the update @Dmitriy. Will the new process cover this command?


#5

Could you achieve this using a virtual pin?

// Device A
bridge1.virtualWrite(V5, "setProperty", "color", "#D3435C");
// Device B
BLYNK_WRITE(V5) {
   String command = param[0].asString();
   if (command == "setProperty") {
      String property = param[1].asString();
      String value = param[2].asString();
      Blynk.setProperty(V5, property, value);
   }
   // ...
}

Note: I don’t use the Bridge Widget. Consequently, I didn’t test (or even compile) this.


#6

Great @wickedbeernut. Thanks for the advice. I’ll give it a go and let you know.


#7

Yes… It worked this way :+1:t2:

100% correct @wickedbeernut. Thanks again for your advice, it’s very much appreciated.


#8

You’re welcome. There are more elegant ways to achieve this, however, sometimes the most simple, transparent approach is the best.