broadcasting

maks971014/nrf24-17032020-v2/broadcasting

No description
broadcasting
@/broadcasting
IN1boolean
IN2boolean
IN3boolean
CONNpulse
broadcasting
IN1
IN2
IN3
CONN
DONE
DONEpulse
To use the node in your project you should have the maks971014/nrf24-17032020-v2 library installed. Use the “File → Add Library” menu item in XOD IDE if you don’t have it yet. See Using libraries for more info.

C++ implementation

struct State {
};

{{ GENERATED_CODE }}

void evaluate(Context ctx) {
   if (!isInputDirty<input_CONN>(ctx)) return;
    msg[0]=static_cast<int>(getValue<input_IN1>(ctx));
    msg[1]=static_cast<int>(getValue<input_IN2>(ctx));
    msg[2]=static_cast<int>(getValue<input_IN3>(ctx));
    radio.write(&msg, sizeof(msg));
    for (int k;k<3;k++){
    Serial.println(msg[k]);
    msg[k]={0};}
     }
    emitValue<output_DONE>(ctx, 1);
}