Go Down

Topic: probleme message d'erreur (Read 534 times) previous topic - next topic

frankblou

bonsoir il a t'il une perssonne qui pourais trouver mon erreur merci ? voici mon message



Arduino : 1.6.5 (Windows 8.1), Carte : "Arduino/Genuino Uno"

_8_relay.ino: In function 'void loop()':
_8_relay:407: error: 'str_field6' was not declared in this scope
_8_relay:409: error: 'str_field6' was not declared in this scope
_8_relay:413: error: 'str_field7' was not declared in this scope
_8_relay:415: error: 'str_field7' was not declared in this scope
_8_relay:419: error: 'str_field8' was not declared in this scope
_8_relay:421: error: 'str_field8' was not declared in this scope
_8_relay:431: error: 'str_field6' was not declared in this scope
_8_relay:431: error: 'str_field7' was not declared in this scope
_8_relay:431: error: 'str_field8' was not declared in this scope
'str_field6' was not declared in this scope

  Ce rapport contiendrait plus d'informations si l'option
  "Montrer les informations de sortie pendant la compilation"
  était activée dans Fichier > Préférences.

frankblou



}

 
    delay(10000);    
    loop_count++;
    Serial.println("LOOP : ");
    Serial.println(loop_count);
   
    if(loop_count == 6 ){
      loop_count = 0;
   
  if(data1) {      
         dtostrf(1, 1, 1, str_field1);    
    }else{
       dtostrf(0.1, 2, 1, str_field1);    
    }
    if(data2) {
         dtostrf(1, 1, 1, str_field2);
    }else{
       dtostrf(0.1, 2, 1, str_field2);  
    }
    if(data3) {
         dtostrf(1, 1, 1, str_field3);
    }else{
       dtostrf(0.1, 2, 1, str_field3);  
    }
    if(data4) {
         dtostrf(1, 1, 1, str_field4);
    }else{
       dtostrf(0.1, 2, 1, str_field4);  
     }
     
   if(data5) {
         dtostrf(1, 1, 1, str_field5);
    }else{
       dtostrf(0.1, 2, 1, str_field5);  
     } if(data4) {
 }
     
   if(data6) {
         dtostrf(1, 1, 1, str_field6);
    }else{
       dtostrf(0.1, 2, 1, str_field6);  
     }
     
   if(data7) {
         dtostrf(1, 1, 1, str_field7);
    }else{
       dtostrf(0.1, 2, 1, str_field7);  
     }
     
   if(data8) {
         dtostrf(1, 1, 1, str_field8);
    }else{
       dtostrf(0.1, 2, 1, str_field8);  

     
    }



 
     
        //65OKK4T6SKM96AVO change this section in accordance with your API Keys
        sprintf(buff, "//update?key=GTDX5SXX1QUOO&field1=%s&field2=%s&field3=%s&field4=%s&field5=%s&field6=%s&field7=%s&field8=%s " ,str_field1,str_field2,str_field3,str_field4,str_field5,str_field6,str_field7,str_field8);
     
         
           
     

weetoz

Salut,

pas le bon endroit et lis donc la charte du forum.

Merci.

Go Up