Add mesh_ready() to mesh
mesh_ready checkes whether a packet is queued. This allows to avoid packet loss at application level.
This commit is contained in:
parent
4e40cb8a8d
commit
b1dbc2047e
2 changed files with 15 additions and 0 deletions
|
@ -201,4 +201,11 @@ mesh_send(struct mesh_conn *c, const rimeaddr_t *to)
|
|||
return 1;
|
||||
}
|
||||
/*---------------------------------------------------------------------------*/
|
||||
int
|
||||
mesh_ready(struct mesh_conn *c)
|
||||
{
|
||||
return (c->queued_data == NULL);
|
||||
}
|
||||
|
||||
|
||||
/** @} */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue