mirror of
https://github.com/bluekitchen/btstack.git
synced 2025-03-30 16:20:24 +00:00
moved client-server-based examples into examples/daemon
This commit is contained in:
parent
6d61352f79
commit
2123836d92
@ -1,5 +1,5 @@
|
||||
AUTOMAKE_OPTIONS = foreign
|
||||
SUBDIRS = platforms/posix/src example
|
||||
SUBDIRS = platforms/posix/src example/daemon
|
||||
|
||||
package:
|
||||
./package.sh
|
@ -164,4 +164,4 @@ AC_SUBST(BTSTACK_LIB_LDFLAGS)
|
||||
AC_SUBST(BTSTACK_LIB_EXTENSION)
|
||||
AC_SUBST(LIBUSB_CFLAGS)
|
||||
AC_SUBST(LIBUSB_LDFLAGS)
|
||||
AC_OUTPUT(Makefile platforms/posix/src/Makefile example/Makefile)
|
||||
AC_OUTPUT(Makefile platforms/posix/src/Makefile example/daemon/Makefile)
|
||||
|
@ -1,14 +0,0 @@
|
||||
/**
|
||||
*/
|
||||
|
||||
#include <stdint.h>
|
||||
#include <btstack/utils.h>
|
||||
|
||||
|
||||
static char new_bd_addr_to_str_buffer[6*3]; // 12:45:78:01:34:67\0
|
||||
static char * new_bd_addr_to_str(bd_addr_t addr){
|
||||
sprintf(new_bd_addr_to_str_buffer, "%02x:%02x:%02x:%02x:%02x:%02x", addr[0], addr[1], addr[2], addr[3], addr[4], addr[5]);
|
||||
return (char *) new_bd_addr_to_str_buffer;
|
||||
}
|
||||
|
||||
#define bd_addr_to_str(x) new_bd_addr_to_str(x)
|
@ -1,6 +1,7 @@
|
||||
BTSTACK_ROOT=../..
|
||||
CC = @CC@
|
||||
LDFLAGS = @LDFLAGS@ -lBTstack -L../src
|
||||
CFLAGS = @CFLAGS@ -I.. -I../include
|
||||
LDFLAGS = @LDFLAGS@ -lBTstack -L../../src
|
||||
CFLAGS = @CFLAGS@ -I$(BTSTACK_ROOT) -I$(BTSTACK_ROOT)/include
|
||||
prefix = @prefix@
|
||||
|
||||
all: test rfcomm-cat rfcomm-echo rfcomm-test inquiry l2cap-server l2cap-throughput
|
@ -42,9 +42,6 @@
|
||||
|
||||
#include <btstack/btstack.h>
|
||||
|
||||
// until next BTstack Cydia update
|
||||
#include "compat-svn.c"
|
||||
|
||||
#define MAX_DEVICES 10
|
||||
struct device {
|
||||
bd_addr_t address;
|
@ -44,9 +44,6 @@
|
||||
#include <btstack/hci_cmds.h>
|
||||
#include <btstack/sdp_util.h>
|
||||
|
||||
// until next BTstack Cydia update
|
||||
#include "compat-svn.c"
|
||||
|
||||
int l2cap_reg_fail = 0;
|
||||
|
||||
hci_con_handle_t con_handle;
|
@ -43,9 +43,6 @@
|
||||
#include <btstack/btstack.h>
|
||||
#include <btstack/hci_cmds.h>
|
||||
|
||||
// until next BTstack Cydia update
|
||||
#include "compat-svn.c"
|
||||
|
||||
#define PSM_TEST 0xdead
|
||||
#define PACKET_SIZE 1000
|
||||
|
@ -50,9 +50,6 @@
|
||||
#include <btstack/btstack.h>
|
||||
#include <btstack/sdp_util.h>
|
||||
|
||||
// until next BTstack Cydia update
|
||||
#include "compat-svn.c"
|
||||
|
||||
// input from command line arguments
|
||||
bd_addr_t addr = { };
|
||||
uint16_t con_handle;
|
@ -46,9 +46,6 @@
|
||||
#include <btstack/btstack.h>
|
||||
#include <btstack/sdp_util.h>
|
||||
|
||||
// until next BTstack Cydia update
|
||||
#include "compat-svn.c"
|
||||
|
||||
// input from command line arguments
|
||||
bd_addr_t addr = { };
|
||||
uint16_t con_handle;
|
@ -46,9 +46,6 @@
|
||||
#include <btstack/btstack.h>
|
||||
#include <btstack/sdp_util.h>
|
||||
|
||||
// until next BTstack Cydia update
|
||||
#include "compat-svn.c"
|
||||
|
||||
#define NUM_ROWS 25
|
||||
#define NUM_COLS 80
|
||||
|
Loading…
x
Reference in New Issue
Block a user