I’m currently trying to pull values out of a publish and send them off as individual fields in a post request to a hosted node.js/express server on Heroku. I’m currently publishing the values from the photon in a json format and want to parse them out like such the bottom image.
Particle.publish("addReading", String::format("{\"currentTime\":%d, \"strokesSinceLastPublish\":%d, \"rideId\": %d}", curTime, passes, rideId));
Thanks,
Joseph