Skip to content

AirLift BLE on Adafruit Fruit Jam does not accept advertising commands #11322

Description

@colinvail6

CircuitPython version and board name

Adafruit CircuitPython 10.3.0 on 2026-08-31; Adafruit Fruit Jam with rp2350b

Code/REPL

# SPDX-FileCopyrightText: 2021 Brent Rubell for Adafruit Industries
#
# SPDX-License-Identifier: MIT

import board
from adafruit_ble import BLERadio
from adafruit_ble.advertising.standard import ProvideServicesAdvertisement
from adafruit_ble.services.nordic import UARTService
from adafruit_airlift.esp32 import ESP32

esp32 = ESP32(
    reset=board.ESP_RESET,
    gpio0=board.ESP_IRQ,
    busy=board.ESP_BUSY,
    chip_select=board.ESP_CS,
    tx=board.ESP_TX,
    rx=board.ESP_RX,
)

adapter = esp32.start_bluetooth()

ble = BLERadio(adapter)
uart = UARTService()
advertisement = ProvideServicesAdvertisement(uart)

while True:
    ble.start_advertising(advertisement)
    print("waiting to connect")
    while not ble.connected:
        pass
    print("connected: trying to read input")
    while ble.connected:
        # Returns b'' if nothing was read.
        one_byte = uart.read(1)
        if one_byte:
            print(one_byte)
            uart.write(one_byte)

Behavior

Traceback (most recent call last):
  File "code.py", line 27, in <module>
  File "adafruit_ble/__init__.py", line 212, in start_advertising
_bleio.BluetoothError: HCI status error: 0c

Description

When start_advertising is called, the Fruit Jam's AirLift module returns an HCI status error of 0x0C. (Command Disallowed)

Additional information

Wi-Fi on its AirLift module works perfectly.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions