can I disable noble getPorts if port is supplied?

Posted on
  • running esp32 wroom with

    #!/bin/bash
    espruino \
      -v   \
      --port /dev/ttyUSB0 \
      -b 115200 \
      --board boards/ESP32.json \
      $1
    

    where $1 is the code file I am uploading.

    I get this in terminal output but it still connects so maybe the Noble:getPorts is not required if I explicitly supply a port. If so can I disable it so it doesn't have to wait for 10 sec timeout EVERY time I upload code.

    I assume this is some auto port finder that isn't working for me.

    Noble: getPorts - not initialised
    Noble: Didn't initialise in 10 seconds, disabling.
    Connected Ok
    Connected
    
  • Looks like you asked this on GitHub as well? https://github.com/espruino/EspruinoTools/issues/126

    As I mentioned on GitHub:

    You can just remove the 'noble' module, or use the --no-ble option.

    getPorts needs to be called for each enabled connection type though, because the tool has to compare the port names with what's returned to figure out which port is to be connected to.

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

can I disable noble getPorts if port is supplied?

Posted by Avatar for dgk @dgk

Actions