Modifications

Sauter à la navigation Sauter à la recherche
173 octets ajoutés ,  29 octobre 2018 à 22:21
Ligne 344 : Ligne 344 :  
}
 
}
 
</syntaxhighlight>
 
</syntaxhighlight>
 +
 +
This function send the header information to the Serial monitor.
 +
 +
Ideally, this function should also send it via the radio.
    
<syntaxhighlight lang="c">
 
<syntaxhighlight lang="c">
 
void send_header() {
 
void send_header() {
  // Send header about the data  Serial.println(F("***START***"));
   
   String s1 = String( F("***HEADER***\r\n") );
 
   String s1 = String( F("***HEADER***\r\n") );
 
   Serial.print( s1 );
 
   Serial.print( s1 );
  // use : as begin of data and ; as end of data
   
   String s2 = String( F(":counter|time_ms|temperature|pressure_hpa|temp2;\r\n") );
 
   String s2 = String( F(":counter|time_ms|temperature|pressure_hpa|temp2;\r\n") );
 
   Serial.print(s2);
 
   Serial.print(s2);
Ligne 358 : Ligne 360 :  
}
 
}
 
</syntaxhighlight>
 
</syntaxhighlight>
 +
 +
Helper function used to blink a LED. Note that a pause of 3 time the blinking time. This will ease the identification of blink code into other blinking patterns.
    
<syntaxhighlight lang="c">
 
<syntaxhighlight lang="c">
29 910

modifications

Menu de navigation