(Beginner) Help required for storing data + using Twilio

  1. Just call agent.send() with a message name and some small dummy data. I usually do, eg. agent.send("end.of.day", true); and then have device.on("end.of.day", function(ignoredValue) { ... }{;, ie. don’t do anything with the true.

  2. This is because you’re sending an array to the agent (serializedData) and just logging its reference (passedValueCopy) — you want to do server.log(passedValueCopy[0]); to output the first item in the array.

As a beginner you might want to check out the Squirrel Programming Guide in the Dev Center, where there’s also some Twilio-oriented sample code.