You are reading a single comment by @Sacha and its replies. Click here to read the full conversation.
  • Hello Gordon
    I tried the storage function on FW 2.00

    I transfered some files over wifi and stored them using the storage.write();
    After deleting all files exept the saved code, i do call storage.compact().

    But i do net get the space back ?

    >ST.getFree();
    =22516
    // Transferred some files and stored: 
    >ST.list();
    =[
      ".varimg",
      "init",
      "config",
      "CORE",
      "DOUT",
      "SW",
      "reboot"
     ]
    // New Free.
    >ST.getFree();
    =9504
    
    >ST.erase('init');
    =undefined
    >ST.erase('config');
    =undefined
    >ST.erase('CORE');
    =undefined
    >ST.erase('DOUT');
    =undefined
    >ST.erase('SW');
    =undefined
    >ST.erase('reboot');
    =undefined
    >ST.list();
    =[
      ".varimg"
     ]
    > ST.compact();
    =undefined
    // Free ?
    >ST.getFree();
    =9504
    

    Thanks for the help.

    Sacha

    P.S.: A storage.eraseAll() function that removes everything exept the saved code would be nice (As an option for eraseAll() ) ?

About

Avatar for Sacha @Sacha started