(self, ssid, password)
return False
This method will install the latest version if out-of-date after boot.
        
        This method, which should be called first thing after booting, will check if the 
        next/.version' file exists. 

        - If yes, it initializes the WIFI connection, downloads the latest version and installs it
        - If no, the WIFI connection is not initialized as no new known version is available
This method will install the latest version if out-of-date after boot.
        
        This method, which should be called first thing after booting, will check if the 
        next/.version' file exists.
This method will install the latest version if out - of - date after boot . This method which should be called first thing after booting will check if the next / . version file exists .
def install_update_if_available_after_boot(self, ssid, password) -> bool:
        """This method will install the latest version if out-of-date after boot.
        
        This method, which should be called first thing after booting, will check if the 
        next/.version' file exists. 

        - If yes, it initializes the WIFI connection, downloads the latest version and installs it
        - If no, the WIFI connection is not initialized as no new known version is available
        """

        if self.new_version_dir in os.listdir(self.module):
            if '.version' in os.listdir(self.modulepath(self.new_version_dir)):
                latest_version = self.get_version(self.modulepath(self.new_version_dir), '.version')
                print('New update found: ', latest_version)
                OTAUpdater._using_network(ssid, password)
                self.install_update_if_available()
                return True
            
        print('No new updates found...')
        return False
def install_update_if_available_after_boot ( self , ssid , password ) -> bool : if self . new_version_dir in os . listdir ( self . module ) : if '.version' in os . listdir ( self . modulepath ( self . new_version_dir ) ) : latest_version = self . get_version ( self . modulepath ( self . new_version_dir ) , '.version' ) print ( 'New update found: ' , latest_version ) OTAUpdater . _using_network ( ssid , password ) self . install_update_if_available ( ) return True print ( 'No new updates found...' ) return False