Messages between issac and unity

Hi,
i can’t figure out how to send a simple state message for isaac to unity…
Can you guys tell me whats wrong?
.hpp file:

ISAAC_PROTO_TX(StateProto, beam_goal);

.cpp file:

auto beam_proto = tx_beam_goal().initProto();
beam_proto.setData({0,1,0});
tx_beam_goal().publish();

edge:

{
“source”: “sim_controller/sim_controller/beam_goal”,
“target”: “simulation.interface/input/beam_goal”
},

Unity script:

if (Receive<IsaacMessage.State>(inputComponent, commandChannelName, out header, out commandComposite, out buffers))
{
// State need buffer for data
if (buffers.Length == 0) return;
double[ ] elements = new double[buffers[0].Length / sizeof(double)];
Buffer.BlockCopy(buffers[0], 0, elements, 0, elements.Length * sizeof(double));
if (elements.Length != 3)
{
throw new Exception(string.Format(“Wrong number of elements: {0}”, elements.Length));
}
Debug.Log(elements);
}

Thank you
Markus