I have a rpi 3 where I wrote a script in JS( a socket),which takes data from a python script. So I have this var “data”(which is an array of string) in JS and I want to save it in ethereum blockchain. I know I need web3.js library to interface with ethereum node and I’ve already installed npm and node.js So my question is…how I pass the value contained in “data” in a smart contract,which stored them?
Further information: Till now I am using testRPC as test network and Truffle to try a contract.