Skip to content

Commit

Permalink
apps: Add BLE Audio Broadcast Sink sample
Browse files Browse the repository at this point in the history
The sample scans for broadcasting devices and synchronizes to the one
that Broadcast Name in EXT_ADV matches APP_BROADCAST_NAME if any��.
If the APP_BROADCAST_NAME is unset, the application will attempt to
synchronize to the first broadcaster found.

Signed-off-by: Mariusz Skamra <mariusz.skamra@codecoup.pl>
  • Loading branch information
MariuszSkamra committed Jan 26, 2024
1 parent b4c0248 commit 5746199
Show file tree
Hide file tree
Showing 7 changed files with 721 additions and 0 deletions.
16 changes: 16 additions & 0 deletions apps/bleaudio_broadcast_sink/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
#### Bluetooth: LE Audio Broadcast Sink demo

##### Overview
********

This is a application demonstrating a Bluetooth LE Audio Broadcast Sink
implementation.

The sample starts scanning looking for a available broadcasts to sync to.
If the APP_BROADCAST_NAME is set in syscfg.yml the application will try to
match the Broadcast Name in the received EXT_ADV with APP_BROADCAST_NAME.
If the APP_BROADCAST_NAME is unset, the application will attempt to
synchronize to the first broadcaster found.

If the broadcast is encrypted, the APP_BROADCAST_CODE will be provided to
the controller to decrypt the data.
39 changes: 39 additions & 0 deletions apps/bleaudio_broadcast_sink/pkg.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
# Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not use this file except in compliance
# with the License. You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing,
# software distributed under the License is distributed on an
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
# KIND, either express or implied. See the License for the
# specific language governing permissions and limitations
# under the License.
#

pkg.name: apps/bleaudio_broadcast_sink
pkg.type: app
pkg.description: LE Audio Broadcast Sink sample application.

pkg.author: "Mariusz Skamra"
pkg.email: "mariusz.skamra@codecoup.pl"
pkg.homepage: "https://www.codecoup.pl/"
pkg.keywords:

pkg.deps:
- nimble/host
- nimble/host/util
- nimble/host/audio
- nimble/host/services/gap
- nimble/host/store/config
- "@apache-mynewt-core/kernel/os"
- "@apache-mynewt-core/sys/console"
- "@apache-mynewt-core/sys/log"
- "@apache-mynewt-core/sys/stats"
- "@apache-mynewt-core/sys/sysinit"
- "@apache-mynewt-core/sys/id"
Loading

0 comments on commit 5746199

Please sign in to comment.