bool AiaLoadAlerts()

in ports/Storage/src/aia_storage_config.c [453:471]


bool AiaLoadAlerts( uint8_t* allAlerts, size_t size )
{
    if( !AiaAlertsBlobExists() )
    {
        if( size != 0 )
        {
            AiaLogError( "Alerts blob with size %zu does not exist", size );
            return false;
        }
        else
        {
            return true;
        }
    }
    else
    {
        return AiaLoadBlob( AIA_ALL_ALERTS_STORAGE_KEY_V0, allAlerts, size );
    }
}