main.c (6f122aa37274ae04a0ab6be052e905e4fd6dcde9) main.c (98451c7b102094e15e0a72ca2f7098d91aed2017)
1/*
2 * Copyright (C) 2014 BlueKitchen GmbH
3 *
4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions
6 * are met:
7 *
8 * 1. Redistributions of source code must retain the above copyright

--- 190 unchanged lines hidden (view full) ---

199int main(int argc, const char * argv[]){
200
201 /// GET STARTED with BTstack ///
202 btstack_memory_init();
203 btstack_run_loop_init(btstack_run_loop_posix_get_instance());
204
205 // use logger: format HCI_DUMP_PACKETLOGGER, HCI_DUMP_BLUEZ or HCI_DUMP_STDOUT
206 const char * pklg_path = "/tmp/hci_dump.pklg";
1/*
2 * Copyright (C) 2014 BlueKitchen GmbH
3 *
4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions
6 * are met:
7 *
8 * 1. Redistributions of source code must retain the above copyright

--- 190 unchanged lines hidden (view full) ---

199int main(int argc, const char * argv[]){
200
201 /// GET STARTED with BTstack ///
202 btstack_memory_init();
203 btstack_run_loop_init(btstack_run_loop_posix_get_instance());
204
205 // use logger: format HCI_DUMP_PACKETLOGGER, HCI_DUMP_BLUEZ or HCI_DUMP_STDOUT
206 const char * pklg_path = "/tmp/hci_dump.pklg";
207 hci_dump_open(pklg_path, HCI_DUMP_PACKETLOGGER);
207 // hci_dump_open(pklg_path, HCI_DUMP_PACKETLOGGER);
208 printf("Packet Log: %s\n", pklg_path);
209
210 // pick serial port
211 // config.device_name = "/dev/tty.usbserial-A900K2WS"; // DFROBOT
212 // config.device_name = "/dev/tty.usbserial-A50285BI"; // BOOST-CC2564MODA New
213 // config.device_name = "/dev/tty.usbserial-A9OVNX5P"; // RedBear IoT pHAT breakout board
214 config.device_name = "/dev/tty.usbserial-A900K0VK"; // CSR8811 breakout board
215

--- 35 unchanged lines hidden ---
208 printf("Packet Log: %s\n", pklg_path);
209
210 // pick serial port
211 // config.device_name = "/dev/tty.usbserial-A900K2WS"; // DFROBOT
212 // config.device_name = "/dev/tty.usbserial-A50285BI"; // BOOST-CC2564MODA New
213 // config.device_name = "/dev/tty.usbserial-A9OVNX5P"; // RedBear IoT pHAT breakout board
214 config.device_name = "/dev/tty.usbserial-A900K0VK"; // CSR8811 breakout board
215

--- 35 unchanged lines hidden ---