Modifications

Sauter à la navigation Sauter à la recherche
Ligne 188 : Ligne 188 :  
</syntaxhighlight>
 
</syntaxhighlight>
   −
The ":%i,%i,%6.2f,%5.2f,%5.2f;" string formating use {{fname|%i}} to format an integer and {{fname|%6.2f}} or {{fname|%5.2f}} to format floating point value. The parameter to be formatted are given with the tuple (having 5 entries) just being the {{fname|%}} sign.
+
The {{fname|":%i,%i,%6.2f,%5.2f,%5.2f;"}} string formating use {{fname|%i}} to format an integer and {{fname|%6.2f}} or {{fname|%5.2f}} to format floating point value. The parameter to be formatted are given with the tuple (having 5 entries) just being the {{fname|%}} sign.
    
As the {{fname|rfm.send()}} only send bytes, the {{fname|msg}} is transformed into an array of bytes with {{bytes()}} . {{bytes()}} array can only contains ASCII < 127, any other character must be appropriately encoded! This is why the call to {{fname|bytes(msg , "utf-8")}} mentions the source string encoding (wich is [https://fr.wikipedia.org/wiki/UTF-8 UTF-8] nowadays).
 
As the {{fname|rfm.send()}} only send bytes, the {{fname|msg}} is transformed into an array of bytes with {{bytes()}} . {{bytes()}} array can only contains ASCII < 127, any other character must be appropriately encoded! This is why the call to {{fname|bytes(msg , "utf-8")}} mentions the source string encoding (wich is [https://fr.wikipedia.org/wiki/UTF-8 UTF-8] nowadays).
    
{{ENG-CANSAT-PICO-TRAILER}}
 
{{ENG-CANSAT-PICO-TRAILER}}
29 917

modifications

Menu de navigation