I’m getting the json below when attempting to retrieve data from my electron. any ideas? The same code works flawlessly on the photon. Any ideas what this means?
{
“ok”: false,
“error”: “Problem requesting variable: TimeoutError: message Describe reached maximum number of retransmissions”
}
I’m a little late to the party but I had this same error. My issue occurred when I would call a cloud-registered function using the API while my particle device was in a loop (in particular waiting on a URC) within the main loop().
void loop(){
while (waiting for URC) {
if(URC arrived){
do stuff;
}
}
}
To fix this either call Particle.process() to handle the other tasks, or delay() which delays for a period of time but also invokes background processes.
After fixing my code it looked something like this:
void loop(){
while (waiting for URC) {
if(URC arrived){
do stuff;
}
delay(200); <- particle.function() calls handled here
}
}