He creado una función en la nube usando el SDK de Parse.com Javascript y llamo a esas funciones desde Arduino. El siguiente es el código para la hellofunción:
Parse.Cloud.define("hello", function(request, response) {
                response.success("This is hello function");         
}); //hello function BlockLlamo a esta función desde el lado de Arduino usando el siguiente código:
void setup() {
  Bridge.begin();
  Serial.begin(9600);
  while (!Serial);
  Parse.begin("***zE0uUjQkMa7nj5D5BALvzegzfyVNSG22BD***", "***Ssggp5JgMFmSHfloewW5oixlM5ibt9LBSE***");
  //commented my keys with * here only
  // In this example, we associate this device with a pre-generated installation
  Parse.getInstallationId();
  Parse.startPushService();
}
void loop() {
  Serial.println("Start loop");
  demoBasic("meeting", 0);
}
void demoBasic(String functionname, int light) {
  char fnname[11];
  functionname.toCharArray(fnname, 11);
  Serial.print("In ");
  Serial.print(functionname);
  Serial.println(" Function");
  ParseCloudFunction cloudFunction;
  cloudFunction.setFunctionName(fnname);
  cloudFunction.add("light_sensor", light);
  cloudFunction.add("value", "Arduino Hello");//parameters
  ParseResponse response = cloudFunction.send();
  Serial.println(response.getJSONBody());
}El problema es que solo recibo respuesta 8 veces. Después de todo el flujo del programa se bloquea. ¿Cuál es el problema?
                    
                        arduino-yun
                                code-review
                                
                    
                    
                        Abhijeet Kulkarni
fuente
                
                fuente

Respuestas:
Dale una oportunidad a esto, realmente odio a String, tal vez esa cosa de 8 veces tiene que ver con problemas de memoria causados por ella.
fuente