Help with subscribe - reading .publish from other photon

Create a char buffer of adequate size to fit the data
copy data to a char array
parse the data using strtok()

examples

or (since your return is a JSON object) you can look into the JSON library on Build

1 Like