Hi, I would like to send data between script nodes using a Buffer, but there is a supposedly simple error that I am not capable of fixing, even though I looked into the existing docs and discussions. The script node runs perfectly fine without the buffer, so there should just be a simple misunderstanding on my side. The error message is pretty clear, but I am to stupid to find the correct type of arguments.

test = Buffer(50)
test.setData([1, 5])
node.io['test'].send(test)

[critical] TypeError: setData(): incompatible function arguments. The following argument types are supported:

1\. (self: lpb.Buffer, arg0: buffer) -> None

    Hi ADP
    You need to cast it as a bytearray.

    test = Buffer(50)
    test.setData(bytearray([1, 5]))
    node.io['test'].send(test)

    Thanks,
    Jaka