request-temperatures

wayland/ds18b20/request-temperatures

Sends command for all devices on the bus to perform a temperature conversion.
request-temperatures
@/request-temperatures
Sends command for all devices on the bus to perform a temperature conversion.
DEV@/ds18b20-devices
One or more DS18B20 devices on a one-wire bus.
UPDpulse
Update.
request-temperatures
DONE
DEV
UPD
DONEpulse
Pulse when request has been made.
To use the node in your project you should have the wayland/ds18b20 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

node {

    void evaluate(Context ctx) {
        if (!isInputDirty<input_UPD>(ctx))
            return;

        auto sensors = getValue<input_DEV>(ctx);
        sensors->requestTemperatures();
 
        emitValue<output_DONE>(ctx, 1);
    }
}