spp_streamer.c (2fca4dad957cd7b88f4657ed51e89c12615dda72) | spp_streamer.c (8c9bb29ec24759ba592d72f79417df812fd8a97f) |
---|---|
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 --- 269 unchanged lines hidden (view full) --- 278/* LISTING_START(MainConfiguration): Init L2CAP RFCOMM SDP SPP */ 279int btstack_main(int argc, const char * argv[]) 280{ 281 (void)argc; 282 (void)argv; 283 284 l2cap_init(); 285 | 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 --- 269 unchanged lines hidden (view full) --- 278/* LISTING_START(MainConfiguration): Init L2CAP RFCOMM SDP SPP */ 279int btstack_main(int argc, const char * argv[]) 280{ 281 (void)argc; 282 (void)argv; 283 284 l2cap_init(); 285 |
286#ifdef ENABLE_BLE 287 // Initialize LE Security Manager. Needed for cross-transport key derivation 288 sm_init(); 289#endif 290 |
|
286 rfcomm_init(); 287 rfcomm_register_service(packet_handler, RFCOMM_SERVER_CHANNEL, 0xffff); 288 289#ifdef ENABLE_L2CAP_ENHANCED_RETRANSMISSION_MODE_FOR_RFCOMM 290 // setup ERTM management 291 rfcomm_enable_l2cap_ertm(&rfcomm_ertm_request_handler, &rfcomm_ertm_released_handler); 292#endif 293 --- 27 unchanged lines hidden --- | 291 rfcomm_init(); 292 rfcomm_register_service(packet_handler, RFCOMM_SERVER_CHANNEL, 0xffff); 293 294#ifdef ENABLE_L2CAP_ENHANCED_RETRANSMISSION_MODE_FOR_RFCOMM 295 // setup ERTM management 296 rfcomm_enable_l2cap_ertm(&rfcomm_ertm_request_handler, &rfcomm_ertm_released_handler); 297#endif 298 --- 27 unchanged lines hidden --- |