si je met int("192") ca ne marche plus
dans le putChar pas dans le getChar
preferences.putUChar("IP1",int("192"));
preferences.putUChar("IP2",168);
preferences.putUChar("IP3",0);
preferences.putUChar("IP4",40);
byte toto1=preferences.getUChar("IP1",192);
byte toto2=preferences.getUChar("IP2",168);
byte toto3=preferences.getUChar("IP3",0);
byte toto4=preferences.getUChar("IP4",0);
IPAddress ipaddr(toto1, toto2, toto3, toto4);
le ca ne marche pas
preferences.putUChar("IP1",192));
preferences.putUChar("IP2",168);
preferences.putUChar("IP3",0);
preferences.putUChar("IP4",40);
byte toto1=preferences.getUChar("IP1",192);
byte toto2=preferences.getUChar("IP2",168);
byte toto3=preferences.getUChar("IP3",0);
byte toto4=preferences.getUChar("IP4",0);
IPAddress ipaddr(toto1, toto2, toto3, toto4);
la ca marche
voit pas trop la difference ....192 c'est bien un integer
Oui mais int("192") ça n'a pas de sens en C.
Pour t'aider efficacement, il faudrait voir le reste du code, ou bien un code simplifié mais complet.
je vient de trouvé a l'instant lorsque j'enregistrer les parametre de l'adresse ip je metté des char alors qu'il lui fallais des int
tous ca pour ca
merci a vous tous de votre aide je le dirais jamais assez .ca fait deux fois que je galère pour des bêtise et vous êtes la ....un grand grand merci a vous
This topic was automatically closed 120 days after the last reply. New replies are no longer allowed.