You are reading a single comment by @Gordon and its replies. Click here to read the full conversation.
  • Interesting... do you have any error messages, or does it just not print anything? Is it responsive? And can you connect via Telnet?

    When I tried it, Telnet worked fine every time. However there seemed to be an issue with it not being responsive over USB.

    Please could you try this and see if it works:

    function onInit() {
      setTimeout(function() {
        require('Wifi').connect('BTHub4-XFTX',{password:'735dfd986d'}, function(err) {
          console.log(err);
          if (err) return;
          LED2.set();
          require('net').createServer((conn) => {
            LED2.reset();
            LED1.set();
            conn.pipe(LoopbackA);
            conn.on('close',function() {USB.setConsole();});
            LoopbackA.pipe(conn);
            LoopbackB.setConsole();
          }).listen(23);
        });
        USB.setConsole();
      },3000);
    }
    

    I've added LED changes so you can see connection state, but the main thing is the USB.setConsole(); right at the end. It could be because of a bug in some recent changes I made.

About

Avatar for Gordon @Gordon started