1 réponse
ElementW
Messages postés
4814
Date d'inscription
dimanche 12 juin 2011
Statut
Contributeur
Dernière intervention
5 octobre 2021
1 227
24 mai 2015 à 18:47
24 mai 2015 à 18:47
'lut, sans code on peut pas te dire ce qui cloche...
Modifié par aaa le 24/05/2015 à 19:53
task void SendData() {
struct DataMsg* ptr;
ptr = (struct DataMsg*)(buffer.data);
Tab[i] = data;
ptr->tab[i] = tab[i];
call SendDataMsg.send ( TOS_BCAST_ADDR ,sizeof(uint16_t), &buffer); }
mais dans la partie recieve jai un pbm au niveau de la boucle
event TOS_MsgPtr ReceiveDataMsg.receive(TOS_MsgPtr pmsg) {
struct DataMsg* ptr;
ptr = (struct DataMsg*)(pmsg->data);
for ( i=0; i< max ; i++){
tab[i] = ptr->tab[i];
}
post relayData() ;
return pmsg;
}
Je sais pas ou est le pbm ?!!!
merci de m'aider
24 mai 2015 à 20:15
24 mai 2015 à 21:18
struct DataMsg* ptr;
ptr = (struct DataMsg*)(pmsg->data);
for ( i=0; i< max ; i++){
tab[i] = ptr->tab[i];
}
post relayData() ;
return pmsg;
}
ça c le code de reception , je veux juste récupérer les valeurs du tableau