You are reading a single comment by @user93073 and its replies. Click here to read the full conversation.
  • Hey folks,

    at first its great to be here. It seems like this is a great community where everyone love the same thing.

    About my problem:

    I made a piece of HW with a ESP32 on it. To control this ( its some switching and sensor reading ) I wrote a server script for the ESP and a html for my client. I just sended everything to the ESP.
    The code works like expected and it seems to be good.

    Well to put the html on the device I used this in the IDE:

    let fs = require('fs');
    try {
      fs.readdirSync();
     } catch (e) { //'Uncaught Error: Unable to mount media : NO_FILESYSTEM'
      console.log('Formatting FS - only need to do once');
      E.flashFatFS({ format: true });
    }
    fs.writeFileSync('index.html', 'here is my code I want to put in the index');
    
    

    Wich worked perfectly.
    My code for the ESP was also just putted on the device by the IDE.
    I did some research how I could simplify this without progress.

    Is it possible to create a own binary wich got this included ?
    Or does anyone got an idea what to do next ?

    Thanks in advance

    Chris

About

Avatar for user93073 @user93073 started