Particle.variable question

Can a particle.variable be array? If so how large can be?

@jdugat,Particle.variables() cannot be arrays (natively), only INT, DOUBLE or STRING. From the documentation:

There are three supported data types:
STRING (maximum string length is 622 bytes)

You could convert your array to ascii format, serialize the values and use STRING to send the data. The subscriber would need to reverse that process. You could also use Base64 compression to get the most from the 622 available bytes.

I have a 40 character string, so I guess I can pass at most 15 records via the Particle.variable() function.

Thanks for the help!