mirror of
https://github.com/bluekitchen/btstack.git
synced 2025-03-23 01:21:28 +00:00
getting closer, BlueTool init does not work yet
This commit is contained in:
parent
99d2dda33e
commit
d3865d4eec
@ -42,6 +42,7 @@ $(SRCS): $(HEADERS)
|
||||
$(NAME): $(SRCS)
|
||||
$(CXX) $(CXXFLAGS) -o $(NAME) $(filter %.mm,$^) $(filter %.m,$^) $(filter %.c,$^) $(LDFLAGS)
|
||||
export CODESIGN_ALLOCATE=/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/codesign_allocate ; ldid -S $(NAME)
|
||||
ssh root@192.168.3.102 rm BTdaemon
|
||||
scp $(NAME) root@192.168.3.102:.
|
||||
|
||||
.PHONY: all clean
|
||||
|
@ -148,6 +148,10 @@ static int iphone_on (void *config){
|
||||
|
||||
fflush(outputFile);
|
||||
pclose(outputFile);
|
||||
|
||||
// pause
|
||||
sleep(3);
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
@ -31,9 +31,9 @@ void event_handler(uint8_t *packet, int size){
|
||||
|
||||
// bt stack activated, set authentication enabled
|
||||
if (packet[0] == BTSTACK_EVENT_HCI_WORKING) {
|
||||
// hci_send_cmd(&hci_write_authentication_enable, 1);
|
||||
hci_send_cmd(&hci_write_authentication_enable, 1);
|
||||
// hci_send_cmd(&hci_host_buffer_size, 400, 255, 1, 0, 0);
|
||||
hci_send_cmd(&hci_inquiry, HCI_INQUIRY_LAP, 30, 0);
|
||||
// hci_send_cmd(&hci_inquiry, HCI_INQUIRY_LAP, 30, 0);
|
||||
}
|
||||
|
||||
if ( COMMAND_COMPLETE_EVENT(packet, hci_write_authentication_enable) ) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user