Ejemplo n.º 1
0
m2session* otapi_task_immediate(session_tmpl* s_tmpl, ot_app applet) {
/// Make sure the radio is stopped, flush any interfering sessions,
/// and create the new session to occur immediately (offset = 0).
    if (radio.state != RADIO_Idle) {
        rm2_kill();
    }
    session_flush();
    return sub_newtask(s_tmpl, applet, 0);
}
Ejemplo n.º 2
0
OT_WEAK ot_u16 otapi_flush_sessions() {
    session_flush();
    return session_numfree();
}