mirror of
https://github.com/bluekitchen/btstack.git
synced 2025-04-09 21:45:54 +00:00
docu: copy editing examples titles
This commit is contained in:
parent
c3898ca4c0
commit
ec8ae085b4
@ -11,7 +11,7 @@ pages:
|
||||
- 'Protocols': protocols.md
|
||||
- 'Profiles': profiles.md
|
||||
- 'Implemented GATT Services': gatt_services.md
|
||||
- 'Embedded Examples': examples/examples.md
|
||||
- 'Examples': examples/examples.md
|
||||
- 'Chipsets': chipsets.md
|
||||
- 'Porting to Other Platforms': porting.md
|
||||
- 'Existing Ports': ports/existing_ports.md
|
||||
|
@ -5,30 +5,52 @@ import subprocess
|
||||
|
||||
|
||||
# Defines the names of example groups. Preserves the order in which the example groups will be parsed.
|
||||
list_of_groups = ["Hello World", "GAP", "SDP Queries", "SPP Server", "BNEP/PAN", "HSP", "HFP", "Low Energy", "Dual Mode", "Audio", "HID", "LE Pairing", "Phone Book Access", "Performance", "Testing"]
|
||||
list_of_groups = [
|
||||
"Hello World",
|
||||
"GAP",
|
||||
|
||||
"Low Energy",
|
||||
"Performance",
|
||||
|
||||
"Audio",
|
||||
"SPP Server",
|
||||
"Networking",
|
||||
"HID",
|
||||
|
||||
"Dual Mode",
|
||||
"SDP Queries",
|
||||
"Phone Book Access",
|
||||
|
||||
"Testing"
|
||||
]
|
||||
|
||||
# Defines which examples belong to a group. Example is defined as [example file, example title].
|
||||
list_of_examples = {
|
||||
"Audio" : [["a2dp_sink_demo"],["a2dp_source_demo"]],
|
||||
"Audio" : [["a2dp_sink_demo"],["a2dp_source_demo"], ["avrcp_browsing_client"],
|
||||
["hfp_ag_demo"], ["hfp_hf_demo"],
|
||||
["hsp_ag_demo"], ["hsp_hs_demo"],
|
||||
["sine_player"], ["mod_player"], ["audio_duplex"]],
|
||||
|
||||
"BNEP/PAN" : [["panu_demo"]],
|
||||
"Dual Mode" : [["spp_and_gatt_counter"], ["gatt_streamer_server"]],
|
||||
|
||||
"Dual Mode" : [["spp_and_gatt_counter"]],
|
||||
|
||||
"GAP" : [["gap_inquiry"]],
|
||||
"GAP" : [["gap_inquiry"], ["gap_link_keys"]],
|
||||
|
||||
"Hello World" : [["led_counter"]],
|
||||
"HFP" : [["hfp_ag_demo"], ["hfp_hf_demo"]],
|
||||
"HID" : [["hid_keyboard_demo"], ["hid_mouse_demo"], ["hog_keyboard_demo"], ["hog_mouse_demo"]],
|
||||
"HSP" : [["hsp_ag_demo"], ["hsp_hs_demo"]],
|
||||
"HID" : [["hid_keyboard_demo"], ["hid_mouse_demo"], ["hog_keyboard_demo"], ["hog_mouse_demo"], ["hog_boot_host_demo"]],
|
||||
|
||||
"LE Pairing" : [["sm_pairing_central"], ["sm_pairing_peripheral"]],
|
||||
"Low Energy" : [["gap_le_advertisements"], ["gatt_browser"], ["gatt_counter"], ["gatt_streamer_server"]],
|
||||
"Low Energy" : [["gap_le_advertisements"], ["gatt_browser"], ["gatt_counter"], ["gatt_streamer_server"],
|
||||
["gatt_battery_query"], ["gatt_heart_rate_client"],
|
||||
["nordic_spp_le_counter"], ["nordic_spp_le_streamer"], ["ublox_spp_le_counter"],
|
||||
["sm_pairing_central"], ["sm_pairing_peripheral"],
|
||||
["le_data_channel_client"], ["le_data_channel_server"],
|
||||
["att_delayed_response"], ["ancs_client_demo"], ["le_mitm"]],
|
||||
|
||||
"Performance" : [["le_streamer_client"], ["gatt_streamer_server"], ["spp_streamer"], ["spp_streamer_client"]],
|
||||
"Networking" : [["pan_lwip_http_server"], ["panu_demo"]],
|
||||
|
||||
"Performance" : [["le_streamer_client"], ["gatt_streamer_server"], ["le_data_channel_client"], ["le_data_channel_server"], ["spp_streamer_client"], ["spp_streamer"]],
|
||||
"Phone Book Access" : [["pbap_client_demo"]],
|
||||
|
||||
"SDP Queries" : [["sdp_bnep_query"], ["sdp_general_query"]],
|
||||
"SDP Queries" : [["sdp_general_query"], ["sdp_rfcomm_query"], ["sdp_bnep_query"]],
|
||||
"SPP Server" : [["spp_counter"], ["spp_flowcontrol"]],
|
||||
"Testing" : [["dut_mode_classic"]]
|
||||
}
|
||||
|
@ -42,7 +42,7 @@
|
||||
*/
|
||||
|
||||
// *****************************************************************************
|
||||
/* EXAMPLE_START(a2dp_sink_demo): Audio stream reception and playback control
|
||||
/* EXAMPLE_START(a2dp_sink_demo): A2DP Sink - Receive Audio Stream and Control Playback
|
||||
*
|
||||
* @text This A2DP Sink example demonstrates how to use the A2DP Sink service to
|
||||
* receive an audio data stream from a remote A2DP Source device. In addition,
|
||||
|
@ -42,7 +42,7 @@
|
||||
*/
|
||||
|
||||
// *****************************************************************************
|
||||
/* EXAMPLE_START(a2dp_source_demo): Audio streaming and remote playback control
|
||||
/* EXAMPLE_START(a2dp_source_demo): A2DP Source - Stream Audio and Control Volume
|
||||
*
|
||||
* @text This A2DP Source example demonstrates how to send an audio data stream
|
||||
* to a remote A2DP Sink device and how to switch between two audio data sources.
|
||||
|
@ -38,14 +38,9 @@
|
||||
#define BTSTACK_FILE__ "ancs_client_demo.c"
|
||||
|
||||
// *****************************************************************************
|
||||
//
|
||||
// ANCS Client Demo
|
||||
//
|
||||
// TODO: query full text upon notification using control point
|
||||
// TODO: present notifications in human readable form
|
||||
//
|
||||
// *****************************************************************************
|
||||
|
||||
/* EXAMPLE_START(ancs_client_demo): LE ANCS Client - Apple Notification Service
|
||||
*
|
||||
*/
|
||||
#include <stdint.h>
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
@ -71,6 +66,9 @@
|
||||
#include "ble/le_device_db.h"
|
||||
#include "ble/sm.h"
|
||||
|
||||
// TODO: query full text upon notification using control point
|
||||
// TODO: present notifications in human readable form
|
||||
|
||||
// ancs_client_demo.gatt contains the declaration of the provided GATT Services + Characteristics
|
||||
// ancs_client_demo.h contains the binary representation of ancs_client_demo.gatt
|
||||
// it is generated by the build system by calling: $BTSTACK_ROOT/tool/compile_gatt.py ancs_client_demo.gatt ancs_client_demo.h
|
||||
@ -190,3 +188,5 @@ int btstack_main(int argc, const char * argv[]){
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
/* EXAMPLE_END */
|
@ -37,8 +37,7 @@
|
||||
|
||||
#define BTSTACK_FILE__ "audio_duplex.c"
|
||||
|
||||
/*
|
||||
* Audio Duplex: forward audio from BTstack audio source to audio sink - test for audio interface
|
||||
/* EXAMPLE_START(audio_duplex): Audio Driver - Forward Audio from Source to Sink
|
||||
*
|
||||
*/
|
||||
|
||||
@ -208,3 +207,5 @@ int btstack_main(int argc, const char * argv[]){
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
/* EXAMPLE_END */
|
@ -42,7 +42,7 @@
|
||||
*/
|
||||
|
||||
// *****************************************************************************
|
||||
/* EXAMPLE_START(avrcp_browsing_client): Browse media players and media information on a remote device.
|
||||
/* EXAMPLE_START(avrcp_browsing_client): AVRCP Browsing - Browse Media Players and Media Information
|
||||
*
|
||||
* @text This example demonstrates how to use the AVRCP Controller Browsing service to
|
||||
* browse madia players and media information on a remote AVRCP Source device.
|
||||
|
@ -38,7 +38,7 @@
|
||||
#define BTSTACK_FILE__ "dut_mode_classic.c"
|
||||
|
||||
// *****************************************************************************
|
||||
/* EXAMPLE_START(dut_mode_classic): Testing - Enable Device Under Test (DUT) Mode for BR/EDR
|
||||
/* EXAMPLE_START(dut_mode_classic): Testing - Enable Device Under Test (DUT) Mode for Classic
|
||||
*
|
||||
* @text DUT mode can be used for production testing. This example just configures
|
||||
* the Bluetooth Controller for DUT mode.
|
||||
|
@ -38,7 +38,7 @@
|
||||
#define BTSTACK_FILE__ "gap_inquiry.c"
|
||||
|
||||
// *****************************************************************************
|
||||
/* EXAMPLE_START(gap_inquiry): GAP Inquiry Example
|
||||
/* EXAMPLE_START(gap_inquiry): GAP Classic Inquiry
|
||||
*
|
||||
* @text The Generic Access Profile (GAP) defines how Bluetooth devices discover
|
||||
* and establish a connection with each other. In this example, the application
|
||||
|
@ -39,7 +39,7 @@
|
||||
|
||||
|
||||
// *****************************************************************************
|
||||
/* EXAMPLE_START(gap_le_advertisements): GAP LE Advertisements Dumper
|
||||
/* EXAMPLE_START(gap_le_advertisements): GAP LE Advertisements Scanner
|
||||
*
|
||||
* @text This example shows how to scan and parse advertisements.
|
||||
*
|
||||
|
@ -38,7 +38,8 @@
|
||||
#define BTSTACK_FILE__ "gap_link_keys.c"
|
||||
|
||||
// *****************************************************************************
|
||||
/* EXAMPLE_START(gap_link_keys): GAP Link Key Management Example
|
||||
/* EXAMPLE_START(gap_link_keys): GAP Link Key Management (Classic)
|
||||
*
|
||||
* @text Shows how to iterate over the Classic Link Keys stored in NVS
|
||||
* Link Keys are per device-device bonding. If the Bluetooth Controller can be swapped,
|
||||
* e.g. on desktop systems, a Link Key DB for each Controller is needed.
|
||||
|
@ -38,10 +38,9 @@
|
||||
#define BTSTACK_FILE__ "gatt_battery_query.c"
|
||||
|
||||
// *****************************************************************************
|
||||
//
|
||||
// BLE Client
|
||||
//
|
||||
// *****************************************************************************
|
||||
/* EXAMPLE_START(gatt_battery_query): GATT Battery Client
|
||||
*
|
||||
*/
|
||||
|
||||
#include <stdint.h>
|
||||
#include <stdio.h>
|
||||
@ -374,6 +373,6 @@ int btstack_main(int argc, const char * argv[]){
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
||||
/* EXAMPLE_END */
|
||||
|
||||
|
||||
|
@ -38,7 +38,7 @@
|
||||
#define BTSTACK_FILE__ "gatt_browser.c"
|
||||
|
||||
// *****************************************************************************
|
||||
/* EXAMPLE_START(gatt_browser): GATT Client - Discovering primary services and their characteristics
|
||||
/* EXAMPLE_START(gatt_browser): GATT Client - Discover Primary Services
|
||||
*
|
||||
* @text This example shows how to use the GATT Client
|
||||
* API to discover primary services and their characteristics of the first found
|
||||
|
@ -38,7 +38,7 @@
|
||||
#define BTSTACK_FILE__ "gatt_counter.c"
|
||||
|
||||
// *****************************************************************************
|
||||
/* EXAMPLE_START(le_counter): LE Peripheral - Heartbeat Counter over GATT
|
||||
/* EXAMPLE_START(gatt_counter): GATT Server - Heartbeat Counter over GATT
|
||||
*
|
||||
* @text All newer operating systems provide GATT Client functionality.
|
||||
* The LE Counter examples demonstrates how to specify a minimal GATT Database
|
||||
|
@ -38,7 +38,10 @@
|
||||
#define BTSTACK_FILE__ "gatt_heart_rate_client.c"
|
||||
|
||||
// *****************************************************************************
|
||||
/* EXAMPLE_START(gatt_heart_rate_client): Connects for Heart Rate Sensor and reports measurements */
|
||||
/* EXAMPLE_START(gatt_heart_rate_client): GATT Heart Rate Sensor Client
|
||||
*
|
||||
* @text Connects for Heart Rate Sensor and reports measurements.
|
||||
*/
|
||||
// *****************************************************************************
|
||||
|
||||
#include <inttypes.h>
|
||||
|
@ -35,10 +35,10 @@
|
||||
*
|
||||
*/
|
||||
|
||||
#define BTSTACK_FILE__ "gatt_streamer.c"
|
||||
#define BTSTACK_FILE__ "gatt_streamer_server.c"
|
||||
|
||||
// *****************************************************************************
|
||||
/* EXAMPLE_START(le_streamer): Performance - Stream data over GATT
|
||||
/* EXAMPLE_START(gatt_streamer_server): Performance - Stream Data over GATT (Server)
|
||||
*
|
||||
* @text All newer operating systems provide GATT Client functionality.
|
||||
* This example shows how to get a maximal throughput via BLE:
|
||||
|
@ -42,7 +42,7 @@
|
||||
*/
|
||||
|
||||
// *****************************************************************************
|
||||
/* EXAMPLE_START(hfp_ag_demo): HFP Audio Gateway (AG) Demo
|
||||
/* EXAMPLE_START(hfp_ag_demo): HFP AG - Audio Gateway
|
||||
*
|
||||
* @text This HFP Audio Gateway example demonstrates how to receive
|
||||
* an output from a remote HFP Hands-Free (HF) unit, and,
|
||||
|
@ -43,7 +43,7 @@
|
||||
*/
|
||||
|
||||
// *****************************************************************************
|
||||
/* EXAMPLE_START(hfp_hs_demo): HFP Hands-Free (HF) Demo
|
||||
/* EXAMPLE_START(hfp_hs_demo): HFP HF - Hands-Free
|
||||
*
|
||||
* @text This HFP Hands-Free example demonstrates how to receive
|
||||
* an output from a remote HFP audio gateway (AG), and,
|
||||
|
@ -41,7 +41,7 @@
|
||||
* hid_host_demo.c
|
||||
*/
|
||||
|
||||
/* EXAMPLE_START(hid_host_demo): HID Host Demo
|
||||
/* EXAMPLE_START(hid_host_demo): HID Host Classic
|
||||
*
|
||||
* @text This example implements an HID Host. For now, it connnects to a fixed device, queries the HID SDP
|
||||
* record and opens the HID Control + Interrupt channels
|
||||
|
@ -38,7 +38,7 @@
|
||||
#define BTSTACK_FILE__ "hid_keyboard_demo.c"
|
||||
|
||||
// *****************************************************************************
|
||||
/* EXAMPLE_START(hid_keyboard_demo): HID Keyboard (Server) Demo
|
||||
/* EXAMPLE_START(hid_keyboard_demo): HID Keyboard Classic
|
||||
*
|
||||
* @text This HID Device example demonstrates how to implement
|
||||
* an HID keyboard. Without a HAVE_BTSTACK_STDIN, a fixed demo text is sent
|
||||
|
@ -38,7 +38,7 @@
|
||||
#define BTSTACK_FILE__ "hid_mouse_demo.c"
|
||||
|
||||
// *****************************************************************************
|
||||
/* EXAMPLE_START(hid_mouse_demo): HID Mouse (Server) Demo
|
||||
/* EXAMPLE_START(hid_mouse_demo): HID Mouse Classic
|
||||
*
|
||||
* @text This HID Device example demonstrates how to implement
|
||||
* an HID keyboard. Without a HAVE_BTSTACK_STDIN, a fixed demo text is sent
|
||||
|
@ -41,7 +41,7 @@
|
||||
* hog_boot_host_demo.c
|
||||
*/
|
||||
|
||||
/* EXAMPLE_START(hog_boot_host_demo): HID-over-GATT Boot Host Demo
|
||||
/* EXAMPLE_START(hog_boot_host_demo): HID Boot Host LE
|
||||
*
|
||||
* @text This example implements a minimal HID-over-GATT Boot Host. It scans for LE HID devices, connects to it,
|
||||
* discovers the Characteristics relevant for the HID Service and enables Notifications on them.
|
||||
|
@ -38,7 +38,7 @@
|
||||
#define BTSTACK_FILE__ "hog_keyboard_demo.c"
|
||||
|
||||
// *****************************************************************************
|
||||
/* EXAMPLE_START(hog_keyboard_demo): HID-over-GATT Keyboard
|
||||
/* EXAMPLE_START(hog_keyboard_demo): HID Keyboard LE
|
||||
*/
|
||||
// *****************************************************************************
|
||||
|
||||
|
@ -38,7 +38,7 @@
|
||||
#define BTSTACK_FILE__ "hog_mouse_demo.c"
|
||||
|
||||
// *****************************************************************************
|
||||
/* EXAMPLE_START(hog_mouse_demo): HID-over-GATT Mouse
|
||||
/* EXAMPLE_START(hog_mouse_demo): HID Mouse LE
|
||||
*/
|
||||
// *****************************************************************************
|
||||
|
||||
|
@ -42,7 +42,7 @@
|
||||
*/
|
||||
|
||||
// *****************************************************************************
|
||||
/* EXAMPLE_START(hsp_ag_demo): HSP Audio Gateway Demo
|
||||
/* EXAMPLE_START(hsp_ag_demo): HSP AG - Audio Gateway
|
||||
*
|
||||
* @text This example implements a HSP Audio Gateway device that sends and receives
|
||||
* audio signal over HCI SCO. It demonstrates how to receive
|
||||
|
@ -42,7 +42,7 @@
|
||||
*/
|
||||
|
||||
// *****************************************************************************
|
||||
/* EXAMPLE_START(hsp_hs_demo): HSP Headset Demo
|
||||
/* EXAMPLE_START(hsp_hs_demo): HSP HS - Headset
|
||||
*
|
||||
* @text This example implements a HSP Headset device that sends and receives
|
||||
* audio signal over HCI SCO. It demonstrates how to receive
|
||||
|
@ -37,12 +37,10 @@
|
||||
|
||||
#define BTSTACK_FILE__ "le_data_channel_client.c"
|
||||
|
||||
/*
|
||||
* le_data_channel_client.c
|
||||
*/
|
||||
|
||||
// *****************************************************************************
|
||||
/* EXAMPLE_START(le_data_channel_client): Connects to 'LE Data Channel' and streams data
|
||||
/* EXAMPLE_START(le_data_channel_client): LE Data Channel Client - Send Data over L2CAP
|
||||
*
|
||||
* @text Connects to 'LE Data Channel' and streams data
|
||||
* via LE Data Channel == LE Connection-Oriented Channel == LE Credit-based Connection
|
||||
*/
|
||||
// *****************************************************************************
|
||||
|
@ -38,9 +38,9 @@
|
||||
#define BTSTACK_FILE__ "le_data_channel_server.c"
|
||||
|
||||
// *****************************************************************************
|
||||
/* EXAMPLE_START(le_data_channel): LE Data Channel Server - Receive data via L2CAP
|
||||
/* EXAMPLE_START(le_data_channel): LE Data Channel Server - Receive data over L2CAP
|
||||
*
|
||||
* @text iOS 11 and newer supports LE Data Channels for fast transfer via LE
|
||||
* @text iOS 11 and newer supports LE Data Channels for fast transfer over LE
|
||||
* [https://github.com/bluekitchen/CBL2CAPChannel-Demo](Basic iOS example on GitHub)
|
||||
*/
|
||||
// *****************************************************************************
|
||||
|
@ -38,7 +38,7 @@
|
||||
#define BTSTACK_FILE__ "le_mitm.c"
|
||||
|
||||
// *****************************************************************************
|
||||
/* EXAMPLE_START(le_mitm): Man-in-the-Middle tool for Bluetooth LE
|
||||
/* EXAMPLE_START(le_mitm): LE Man-in-the-Middle Tool
|
||||
*
|
||||
* @text The example first does an LE scan and allows the user to select a Peripheral
|
||||
* device. Then, it connects to the Peripheral and starts advertising with the same
|
||||
|
@ -42,7 +42,7 @@
|
||||
*/
|
||||
|
||||
// *****************************************************************************
|
||||
/* EXAMPLE_START(le_streamer_client): Performance - LE Streamer Client
|
||||
/* EXAMPLE_START(le_streamer_client): Performance - Stream Data over GATT (Client)
|
||||
*
|
||||
* @text Connects to 'LE Streamer' and subscribes to test characteristic
|
||||
*
|
||||
|
@ -38,7 +38,7 @@
|
||||
#define BTSTACK_FILE__ "led_counter.c"
|
||||
|
||||
// *****************************************************************************
|
||||
/* EXAMPLE_START(led_counter): Hello World - Blinking LED without Bluetooth
|
||||
/* EXAMPLE_START(led_counter): Hello World - Blinking an LED without Bluetooth
|
||||
*
|
||||
* @text The example demonstrates how to provide a periodic timer to toggle an
|
||||
* LED and send debug messages to the console as a minimal BTstack test.
|
||||
|
@ -36,6 +36,10 @@
|
||||
*/
|
||||
|
||||
#define BTSTACK_FILE__ "mod_player.c"
|
||||
// *****************************************************************************
|
||||
/* EXAMPLE_START(mod_player): Audio Driver - Play 80's MOD Song
|
||||
*
|
||||
*/
|
||||
|
||||
#include "btstack.h"
|
||||
#include "hxcmod.h"
|
||||
@ -70,3 +74,5 @@ int btstack_main(int argc, const char * argv[]){
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
/* EXAMPLE_END */
|
||||
|
@ -38,7 +38,7 @@
|
||||
#define BTSTACK_FILE__ "nordic_spp_le_counter.c"
|
||||
|
||||
// *****************************************************************************
|
||||
/* EXAMPLE_START(nordic_le_counter): LE Peripheral - Nordic SPP-like profile
|
||||
/* EXAMPLE_START(nordic_le_counter): LE Nordic SPP-like Heartbeat Server
|
||||
*
|
||||
*/
|
||||
// *****************************************************************************
|
||||
|
@ -38,7 +38,7 @@
|
||||
#define BTSTACK_FILE__ "nordic_spp_le_streamer.c"
|
||||
|
||||
// *****************************************************************************
|
||||
/* EXAMPLE_START(nordic_spp_le_streamer): LE Streamer - Stream data over GATT.
|
||||
/* EXAMPLE_START(nordic_spp_le_streamer): LE Nordic SPP-like Streamer Server
|
||||
*
|
||||
* @text All newer operating systems provide GATT Client functionality.
|
||||
* This example shows how to get a maximal throughput via BLE:
|
||||
|
@ -38,7 +38,7 @@
|
||||
#define __BTSTACK_FILE__ "pan_lwip_http_server.c"
|
||||
|
||||
// *****************************************************************************
|
||||
/* EXAMPLE_START(pan_lwip_http_server): PAN - HTTP Server using lwIP
|
||||
/* EXAMPLE_START(pan_lwip_http_server): PAN - lwIP HTTP and DHCP Server
|
||||
*
|
||||
* @text Bluetooth PAN is mainly used for Internet Tethering, where e.g. a mobile
|
||||
* phone provides internet connection to a laptop or a tablet.
|
||||
|
@ -42,16 +42,17 @@
|
||||
* Author: Ole Reinhardt <ole.reinhardt@kernelconcepts.de>
|
||||
*/
|
||||
|
||||
/* EXAMPLE_START(panu_demo): BNEP/PANU Demo
|
||||
/* EXAMPLE_START(panu_demo): BNEP/PANU (Linux only)
|
||||
*
|
||||
* @text This example implements both a PANU client and a server. In server mode, it
|
||||
* sets up a BNEP server and registers a PANU SDP record and waits for incoming connections.
|
||||
* In client mode, it connects to a remote device, does an SDP Query to identify the PANU
|
||||
* service and initiates a BNEP connection.
|
||||
*
|
||||
* Note: currently supported only on Linux and Mac.
|
||||
* Note: currently supported only on Linux and provides a TAP network interface which you
|
||||
* can configure yourself.
|
||||
*
|
||||
* To enable client mode, uncomment ENABLE_PANU_CLIENT below
|
||||
* To enable client mode, uncomment ENABLE_PANU_CLIENT below.
|
||||
*/
|
||||
|
||||
#include <stdio.h>
|
||||
|
@ -38,7 +38,7 @@
|
||||
#define BTSTACK_FILE__ "pbap_client_demo.c"
|
||||
|
||||
// *****************************************************************************
|
||||
/* EXAMPLE_START(pbap_client_demo): Connect to Phonebook Server and get contacts.
|
||||
/* EXAMPLE_START(pbap_client_demo): PBAP Client - Get Contacts from Phonebook Server
|
||||
*
|
||||
* @text Note: The Bluetooth address of the remote Phonbook server is hardcoded.
|
||||
* Change it before running example, then use the UI to connect to it, to set and
|
||||
|
@ -38,7 +38,7 @@
|
||||
#define BTSTACK_FILE__ "sdp_bnep_query.c"
|
||||
|
||||
// *****************************************************************************
|
||||
/* EXAMPLE_START(sdp_bnep_query): SDP Records - Dump BNEP PAN protocol
|
||||
/* EXAMPLE_START(sdp_bnep_query): SDP Client - Query BNEP SDP record
|
||||
*
|
||||
* @text The example shows how the SDP Client is used to get all BNEP service
|
||||
* records from a remote device. It extracts the remote BNEP PAN protocol
|
||||
|
@ -38,7 +38,7 @@
|
||||
#define BTSTACK_FILE__ "sdp_general_query.c"
|
||||
|
||||
// *****************************************************************************
|
||||
/* EXAMPLE_START(sdp_general_query): SDP Records Dump
|
||||
/* EXAMPLE_START(sdp_general_query): SDP Client - Query Remote SDP Records
|
||||
*
|
||||
* @text The example shows how the SDP Client is used to get a list of
|
||||
* service records on a remote device.
|
||||
|
@ -38,9 +38,12 @@
|
||||
#define BTSTACK_FILE__ "sdp_rfcomm_query.c"
|
||||
|
||||
// *****************************************************************************
|
||||
//
|
||||
// minimal setup for SDP client over USB or UART
|
||||
//
|
||||
/* EXAMPLE_START(sdp_rfcomm_query): SDP Client - Query RFCOMM SDP record
|
||||
*
|
||||
* @text The example shows how the SDP Client is used to get all RFCOMM service
|
||||
* records from a remote device. It extracts the remote RFCOMM Server Channel,
|
||||
* which are needed to connect to a remote RFCOMM service.
|
||||
*/
|
||||
// *****************************************************************************
|
||||
|
||||
#include "btstack_config.h"
|
||||
@ -60,7 +63,6 @@
|
||||
|
||||
static void handle_query_rfcomm_event(uint8_t packet_type, uint16_t channel, uint8_t *packet, uint16_t size);
|
||||
|
||||
// static bd_addr_t remote = {0x04,0x0C,0xCE,0xE4,0x85,0xD3};
|
||||
static bd_addr_t remote = {0x84, 0x38, 0x35, 0x65, 0xD1, 0x15};
|
||||
|
||||
static struct {
|
||||
@ -163,3 +165,5 @@ int btstack_main(int argc, const char * argv[]){
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
/* EXAMPLE_END */
|
@ -37,9 +37,9 @@
|
||||
|
||||
#define BTSTACK_FILE__ "sine_player.c"
|
||||
|
||||
/*
|
||||
* Sine Playback to test and validate audio output with simple wave form
|
||||
/* EXAMPLE_START(audio_duplex): Audio Driver - Play Sine
|
||||
*
|
||||
* @text Play sine to test and validate audio output with simple wave form.
|
||||
*/
|
||||
|
||||
#include "btstack.h"
|
||||
@ -89,3 +89,5 @@ int btstack_main(int argc, const char * argv[]){
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
/* EXAMPLE_END */
|
@ -39,7 +39,7 @@
|
||||
|
||||
|
||||
// *****************************************************************************
|
||||
/* EXAMPLE_START(sm_pairing_central): LE Central - Test pairing combinations
|
||||
/* EXAMPLE_START(sm_pairing_central): LE Central - Test Pairing Methods
|
||||
*
|
||||
* @text Depending on the Authentication requiremens and IO Capabilities,
|
||||
* the pairing process uses different short and long term key generation method.
|
||||
|
@ -38,7 +38,7 @@
|
||||
#define BTSTACK_FILE__ "sm_pairing_peripheral.c"
|
||||
|
||||
// *****************************************************************************
|
||||
/* EXAMPLE_START(sm_pairing_peripheral): LE Peripheral - Test pairing combinations
|
||||
/* EXAMPLE_START(sm_pairing_peripheral): LE Peripheral - Test Pairing Methods
|
||||
*
|
||||
* @text Depending on the Authentication requiremens and IO Capabilities,
|
||||
* the pairing process uses different short and long term key generation method.
|
||||
|
@ -38,7 +38,7 @@
|
||||
#define BTSTACK_FILE__ "spp_and_gatt_counter.c"
|
||||
|
||||
// *****************************************************************************
|
||||
/* EXAMPLE_START(spp_and_le_counter): Dual mode - SPP and LE Counter
|
||||
/* EXAMPLE_START(spp_and_le_counter): Dual Mode - SPP and LE Counter
|
||||
*
|
||||
* @text The SPP and LE Counter example combines the Bluetooth Classic SPP Counter
|
||||
* and the Bluetooth LE Counter into a single application.
|
||||
|
@ -38,7 +38,7 @@
|
||||
#define BTSTACK_FILE__ "spp_flowcontrol.c"
|
||||
|
||||
// *****************************************************************************
|
||||
/* EXAMPLE_START(spp_flowcontrol): SPP Server - Flow Control
|
||||
/* EXAMPLE_START(spp_flowcontrol): SPP Server - RFCOMM Flow Control
|
||||
*
|
||||
* @text This example adds explicit flow control for incoming RFCOMM data to the
|
||||
* SPP heartbeat counter example. We will highlight the changes compared to the
|
||||
|
@ -42,7 +42,7 @@
|
||||
*/
|
||||
|
||||
// *****************************************************************************
|
||||
/* EXAMPLE_START(spp_streamer): Performance - Stream data over SPP
|
||||
/* EXAMPLE_START(spp_streamer): Performance - Stream Data over SPP (Server)
|
||||
*
|
||||
* @text After RFCOMM connections gets open, request a
|
||||
* RFCOMM_EVENT_CAN_SEND_NOW via rfcomm_request_can_send_now_event().
|
||||
|
@ -42,7 +42,7 @@
|
||||
*/
|
||||
|
||||
// *****************************************************************************
|
||||
/* EXAMPLE_START(spp_streamer_client): Performance - SPP Streamer Client
|
||||
/* EXAMPLE_START(spp_streamer_client): Performance - Stream Data over SPP (Client)
|
||||
*
|
||||
* @text Note: The SPP Streamer Client scans for and connects to SPP Streamer,
|
||||
* and measures the throughput.
|
||||
|
@ -38,7 +38,7 @@
|
||||
#define BTSTACK_FILE__ "ublox_spp_le_counter.c"
|
||||
|
||||
// *****************************************************************************
|
||||
/* EXAMPLE_START(ublox_le_counter): LE Peripheral - Nordic SPP-like profile
|
||||
/* EXAMPLE_START(ublox_spp_le_counter): LE u-blox SPP-like Heartbeat Server
|
||||
*
|
||||
*/
|
||||
// *****************************************************************************
|
||||
|
Loading…
x
Reference in New Issue
Block a user