Hi everyone!
I’m flashing the following code on a Photon. When doing it through the web IDE, the particle.function gets registered properly. When doing it from Particle Dev, the function doesn’t get registered. I’m properly logged in and can see and set the function through the “cloud functions” panel, but only if the code was flashed using the web IDE.
I suppose I’m doing something wrong somewhere. Any ideas?
Thanks!
R.
int setSpeed(String newSpeed);
void setup()
{
Particle.function("speed", setSpeed);
}
void loop()
{
}
int setSpeed(String newSpeed) {
return 1;
}