Send string to and from raspberry pi

So you have made The variable data a global variable by stating it in process Msg?