This has seriously not been my month with Particle stuff…
I’m using an old spark core. The only code is just to take the arguments from a function and then publish them.
I’m getting null from my arguments I enter in the console.
Does the console not work with the Core for some reason?
void setup() {
Particle.function("SetLiters", setLiters);
}
void loop() {
}
int setLiters(String args){
Particle.publish("Test", args);
return 1;
}
When I run the function it calls the event, but the data is null. Am I missing something dumb?