   if(etat==NULL) etat="{}";
   // construction de la réponse
   String reponse="{\"id\":\""+id+"\",\"er\":\""+erreur+"\",\"et\":"+etat+"}";
+  //String reponse = "{\"id\":\""+id+"\",\"er\":\""+erreur+"\",\"et\":\""+etat+"\"}";
   // résultat
   return reponse;
 }

  
// lecture d'une commande du serveur
String lireCommande(EthernetClient *client){
  String commande;;
  while(client->available()) {
    char c = client->read();
    commande += c;

  }
  // on mémorise l'action
  //String strAction = action->valuestring;
  /*char strAction[sizeof(action->valuestring)*2];
  String(action->valuestring).toCharArray(strAction, sizeof(strAction));*/
  char *strAction = action->valuestring; 
  
  // on récupère les parametres
  aJsonObject *parametres = aJson.getObjectItem(json, "pa");
