• Whether it is possible to work with the console through ethernet module wiz5500. To load a program remotely???


    1 Attachment

    • 20180129_135358.jpg
  • Try:

    var server = require("net").createServer(function(c) {
      console.log('server connected');
      c.write('Your welcome message!\r\n');
      LoopbackA.setConsole();
      LoopbackB.pipe(c);
      c.pipe(LoopbackB);
    }).listen(23);
    

    You'll have to be careful not to reset() - which the Web IDE does automatically at upload normally - since that will remove the server which is serving your code!

    You could do a little with:

    var reallyReset = reset;
    function reset() {
      clearWatch();
      clearInterval();
    }
    

    But that wouldn't delete any uploaded functions.

  • Wow!

  • Post a reply
    • Bold
    • Italics
    • Link
    • Image
    • List
    • Quote
    • code
    • Preview
About

To work with the console through ethernet module wiz5500.

Posted by Avatar for Alexander @Alexander

Actions