I’m a bit new here but i have a question about using the Particle photon with the CLI.
I looked over the example codes but i’m kinda stuck so any help would be appreciated (sorry if this was answered before).
So let’s say I want to build a thermostat:
I can use the // Particle.variable(“Temperature”, &temp_value, INT); // to get the current temperature reading and that works fine. But let’s say I have a variable called set point that I initialized to 25 degree C in set-up // int set_point = 25; //.
My question is how would I be able to modify set_point = value VIA the CLI since Particle.function accepts only strings. I don’t know if anything like a string 2 num would be possible then set_point = command; ??
Any suggestion, advice or code examples??
Thank you and nice to meet you all