reception

maks971014/nrf24-17032020-v2/reception

No description
reception
@/reception
CONNpulse
reception
OUT1
OUT2
OUT3
CONN
DONE
DONEpulse
OUT3number
OUT2number
OUT1number
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;
     if ( radio.available(&pipeNo)) {             // слушаем эфир со всех труб
        radio.read( &msg, sizeof(msg) );
     }
    emitValue<output_OUT1>(ctx, msg[0]);
    emitValue<output_OUT2>(ctx, msg[1]);
    emitValue<output_OUT3>(ctx, msg[3]);
    emitValue<output_DONE>(ctx, 1);
}