--ble no address provided

Abierto
#877 0 comentarios 0 reacciones 0 asignados Ver en GitHub

Los mantenedores suelen responder en 1 día

Nadie ha tomado este issue todavía.

Evaluación

Dificultad
3/5
Tiempo estimado
Medio día
Aptitud para principiantes
55/100
Tipo de issue
Error
Claridad
Bien especificado
Estado de actividad
Estancado
Stack tecnológico
python
Área
cli

Línea de trabajo

The debug output shows the BLE address reaching BleInterface.__init__ in ble_interface.py (lines 49-59) but then hitting the if not address: early return at line 267-268, so the value is lost before that check. Trace where the --ble argument is parsed and passed to the interface constructor, likely in __main__.py. Done means --ble <address> --info connects to the device and no longer logs 'No address provided'. There are no tests or comments in the payload, so verify by running the command against a device or a mocked BleakClient.

Escrito por el modelo de indexación a partir del texto del issue.

Descripción

With firmware 2.17.5 with RAK4631, XIAO NRF KIT and HELTEC V3, V4:

meshtastic --ble '650FE00F-0AC1-844B-5F4C-54F0AC37AAAA' --info --debuglib
DEBUG file:main.py common line:1352 Not logging serial output
DEBUG file:ble_interface.py init line:49 Threads starting
DEBUG file:ble_interface.py init line:55 Threads running
DEBUG file:ble_interface.py init line:59 BLE connecting to: 650FE00F-0AC1-844B-5F4C-54F0AC37AAAA
DEBUG file:ble_interface.py init line:268 No address provided - only discover method will work.
INFO file:ble_interface.py scan line:129 Scanning for BLE devices (takes 10 seconds)...

No --info, no --nodes etc. possible. Seems as if the string after --ble is not targeted in the code.

ble_interface.py at line 267 -->

    if not address:
        logger.debug("No address provided - only discover method will work.")
        return

    self.bleak_client = BleakClient(address, **kwargs)
Lenguaje dominante
Python
Estrellas
855
Forks
355
Merge medio
3 d 3 h
PR fusionados (30 d)
12

Preparar el entorno

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de meshtastic/python

Todos los issues de meshtastic/python

Issues similares

Más issues de Python

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.