envoie:
modif_para_ronde[12]=byte(stop_ronde)>>24;
modif_para_ronde[13]=byte(stop_ronde)>>16;
modif_para_ronde[14]=byte(stop_ronde)>>8;
modif_para_ronde[15]=byte(stop_ronde);
//modif para ronde est un tableau de byte, et stop ronde un int
réception:
stop_ronde=((reception[12]<<24)+((reception[13]& 0xFF)<<16)+((reception[14]& 0xFF)<<8)+(reception[15]& 0xFF))*1000;
//récepetion UDP reception => byte
Serial.print(stop_ronde); //stop ronde => long int
donc résumé: 2 problèmes !!
- reception:
normalement 0 => max int actuelle 0 => 255 max
-*1000 long int
normalement 0 => max long int actuelle 0 => 32 000
Je sèche la..
Skizo !