Transfer an array using Spark.variable

I am attempting to transfer an array of 6 variable from the spark core to a web server, can anyone advise on the best way to achieve this?

I am trying to transfer a MAC address which is contained in this array

char detectedDeviceString[6];

Any advice would be appreciated.

Usually we can join them using

sprintf(myIpString, ā€œ%d.%d.%d.%dā€, detectedDeviceString[0], detectedDeviceString[1], detectedDeviceString[2], detectedDeviceString[3]);

OR consider this: :smile:

Thanks for the article link, after a bit of trial and error I am almost there.
Just trying to debug some odd behaviour but its now transferring the string.

1 Like