string-namber-to-byte

nazarijtipusak080/esp32-sd-card-read-write-append/string-namber-to-byte

Transforms a string into a number
string-namber-to-byte
@/string-namber-to-byte
Transforms a string into a number
INstring
string-namber-to-byte
IN
OUT
OUTbyte
To use the node in your project you should have the nazarijtipusak080/esp32-sd-card-read-write-append 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) {
    auto state = getState(ctx);
    auto str = getValue<input_IN>(ctx);
    char _str[16];
    dump(str,_str);
    emitValue<output_OUT>(ctx, atof(_str));
}