     trameComplete = ti.decode(c);
     if (trameComplete)
     {
-      mypApp=ti.pApp();
-      myiInst=ti.iInst();
-      myindexHC=ti.indexHC();
-      myindexHP=ti.indexHP();
+      mypApp=(int) ti.pApp();
+      myiInst=(int) ti.iInst();
+      myindexHC=(int) ti.indexHC();
+      myindexHP=(int) ti.indexHP();
 	  
 	  if(!init_teleinfo) {
 		myisousc = ti.iSousc();

int fpC(int i, char cOrdre);

unsigned int delestageEnCours = 1;
unsigned int nbDelestage = 0;

// Téléinfo
TeleInfo ti; // objet téléinfo
char c; // pour stocker un caractère reçu sur le port série
bool trameComplete = false;
unsigned int mypApp = TELEINFO_UINT_INVALIDE;
unsigned int myiInst = TELEINFO_UINT_INVALIDE;
unsigned int myindexHC = TELEINFO_UINT_INVALIDE;
unsigned int myindexHP = TELEINFO_UINT_INVALIDE;
unsigned int myisousc = TELEINFO_UINT_INVALIDE; // pour calculer la limite de délestage
float myDelestLimit = 0.0;
boolean init_teleinfo = false;
char etatFP[20] = "";

void setup()
{
  // == Fils pilotes ==
  initCdeFilsPilotes();
  Spark.function("fp", fpControl);
  Spark.function("setfp", setFP);
  Spark.variable("nbdelest", &nbDelestage, INT);
  Spark.variable("etatfp", &etatFP, STRING);
   
  // == Téléinfo ==
  Spark.variable("papp", &mypApp, INT);
  Spark.variable("iinst", &myiInst, INT);
  Spark.variable("indexhc", &myindexHC, INT);
  Spark.variable("indexhp", &myindexHP, INT);
  
  Serial.begin(115200); // Port série USB
  Serial1.begin(1200);  // Port série RX/TX

// CAAAAAA => Tous OFF sauf le fil pilote 1

	unsigned int i;
	int returnValue = -1; // Init à -1 => Erreur
	
	command.trim();
