cecchi,
the code you write as an example is not possible, if you do not make the scheduler run then no packets will be send.
so what you can do is capture the confirm in the :BeeAppDataConfirm() function
then start a timer to trigger the next transmission.
here is a bit of pseudo code :
Add something like this to the confirm function :
TMR_StartSingleShotTimer(SendpacketTimerId, 100, SendPacketCallback());
SendPacketCallback( tmrTimerID_t timerId )
{
(void) timerId;
call AF_dataRequest to send a packet)
}
BR,
Mads