Send failed
- This topic has 2 replies, 2 voices, and was last updated 8 years, 2 months ago by .
Viewing 3 posts - 1 through 3 (of 3 total)
Viewing 3 posts - 1 through 3 (of 3 total)
- You must be logged in to reply to this topic.
Tagged: mdot peer to peer
Hi,
Sometime I got this error on my debug port: [ERROR] Send failed : code 10. Do you know what does it mean?
thx!
Under what circumstances?
The lorawan layer may be busy with TX or RX.
Hi M.Reiss,
i use recv() function in peer to peer mode
here a sample of my code:
bAckReceived = false;
status = _dot->send(SendVector,false);
if (status == mDot::MDOT_OK)
{
// wait for send to finish
int cntA = 0;
while (_dot->getIsTransmitting() && (cntA < 10))
{
cntA++;
osDelay(10);
}
if (cntA < 10)
{
data.clear(); //5dec16
Ack_timer.start();
while ((bAckReceived == false) && (Ack_timer.read_ms() < 200))
{
if (_dot->recv(data) == mDot::MDOT_OK)
{
bAckReceived = true;
DecodeRX(data, foundAA, found49, index);
}
}
Ack_timer.stop();
Ack_timer.reset();
}
}
else
{
_dot->getSerialClearOnError();
osDelay(15); //5dec16
}
thx a lot !!