function jsmIsDeviceOnline(offlineSec)
{
    var nowTime  = (new Date()).getTime() / 1000; // current Epoch time
    var deltaSec = nowTime - jsvLastEventEpoch;
    return (deltaSec <= offlineSec)? true : false;
}
/**
*** Return true if the device last event has been received within the
*** delta-time specified.
**/
Return true if the device last event has been received within the
delta-time specified.
Return true if the device last event has been received within the delta - time specified .
function jsmIsDeviceOnline(offlineSec)
{
    var nowTime  = (new Date()).getTime() / 1000; 
    var deltaSec = nowTime - jsvLastEventEpoch;
    return (deltaSec <= offlineSec)? true : false;
}
function jsmIsDeviceOnline ( offlineSec ) { var nowTime = ( new Date ( ) ) . getTime ( ) / 1000 ; var deltaSec = nowTime - jsvLastEventEpoch ; return ( deltaSec <= offlineSec ) ? true : false ; }
Return true if the device last event has been received within the
delta-time specified.
Return true if the device last event has been received within the delta - time specified .
// current Epoch time