azureeyemodule/app/iot/iot_interface.cpp
static bool filter_msg_by_telemetry_intervals(const MsgChannel &channel)
{
    if (telemetry_timers[channel].elapsed_ms() > telemetry_intervals_ms[channel])
    {
        telemetry_timers[channel].reset();
        return true;
    }
    else
    {
        return false;
    }
}
/** Return true if we should send this type of message (i.e., if this type of message's timer has expired). */
Return true if we should send this type of message .
Return true if we should send this type of message .
static bool filter_msg_by_telemetry_intervals(const MsgChannel &channel)
{
    if (telemetry_timers[channel].elapsed_ms() > telemetry_intervals_ms[channel])
    {
        telemetry_timers[channel].reset();
        return true;
    }
    else
    {
        return false;
    }
}
static bool filter_msg_by_telemetry_intervals ( const MsgChannel & channel ) { if ( telemetry_timers [ channel ] . elapsed_ms ( ) > telemetry_intervals_ms [ channel ] ) { telemetry_timers [ channel ] . reset ( ) ; return true ; } else { return false ; } }
Return true if we should send this type of message (i.e., if this type of message's timer has expired).
Return true if we should send this type of message ( i . e . if this type of message ' s timer has expired ) .