Made send intervals configurable when sending a new file
This commit is contained in:
parent
0f17706ef3
commit
a26906f478
4 changed files with 24 additions and 21 deletions
|
@ -47,7 +47,7 @@
|
|||
*
|
||||
* This file is part of the Contiki operating system.
|
||||
*
|
||||
* $Id: rudolph1.h,v 1.2 2007/03/31 18:31:28 adamdunkels Exp $
|
||||
* $Id: rudolph1.h,v 1.3 2007/04/02 09:51:45 adamdunkels Exp $
|
||||
*/
|
||||
|
||||
/**
|
||||
|
@ -85,6 +85,7 @@ struct rudolph1_conn {
|
|||
struct uabc_conn uabc;
|
||||
const struct rudolph1_callbacks *cb;
|
||||
struct ctimer t;
|
||||
clock_time_t send_interval;
|
||||
u16_t chunk;
|
||||
u8_t version;
|
||||
u8_t trickle_interval;
|
||||
|
@ -94,7 +95,7 @@ struct rudolph1_conn {
|
|||
void rudolph1_open(struct rudolph1_conn *c, u16_t channel,
|
||||
const struct rudolph1_callbacks *cb);
|
||||
void rudolph1_close(struct rudolph1_conn *c);
|
||||
void rudolph1_send(struct rudolph1_conn *c);
|
||||
void rudolph1_send(struct rudolph1_conn *c, clock_time_t send_interval);
|
||||
void rudolph1_stop(struct rudolph1_conn *c);
|
||||
|
||||
#endif /* __RUDOLPH1_H__ */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue