Determining memory and flash would need to be done with the sarcli() python module. With it you call the appropriate CLI command to determine memory and flash.
Transport command here (contains commands for determining available memory and flash):
TransPort User Guide
sarcli() example here:
import sarcli
def Get_Cli():
clidata = ""
cli = sarcli.open()
cli.write("gpio")
whileTrue:
tmpdata = cli.read(-1)
ifnot tmpdata:
break
clidata += tmpdata
cli.close()
return clidata
Last updated:
Sep 20, 2024