rfcomm.c (e46880dc330c8610bbb04d104385028c54cba1e2) | rfcomm.c (78315a58573f370dd679856042aa32fba14bc84a) |
---|---|
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 --- 2172 unchanged lines hidden (view full) --- 2181 2182// MARK: RFCOMM BTstack API 2183 2184void rfcomm_init(void){ 2185 rfcomm_client_cid_generator = 0; 2186 rfcomm_multiplexers = NULL; 2187 rfcomm_services = NULL; 2188 rfcomm_channels = NULL; | 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 --- 2172 unchanged lines hidden (view full) --- 2181 2182// MARK: RFCOMM BTstack API 2183 2184void rfcomm_init(void){ 2185 rfcomm_client_cid_generator = 0; 2186 rfcomm_multiplexers = NULL; 2187 rfcomm_services = NULL; 2188 rfcomm_channels = NULL; |
2189 rfcomm_security_level = LEVEL_2; | 2189 rfcomm_security_level = gap_get_security_level(); |
2190} 2191 2192void rfcomm_set_required_security_level(gap_security_level_t security_level){ 2193 rfcomm_security_level = security_level; 2194} 2195 2196int rfcomm_can_send_packet_now(uint16_t rfcomm_cid){ 2197 rfcomm_channel_t * channel = rfcomm_channel_for_rfcomm_cid(rfcomm_cid); --- 419 unchanged lines hidden --- | 2190} 2191 2192void rfcomm_set_required_security_level(gap_security_level_t security_level){ 2193 rfcomm_security_level = security_level; 2194} 2195 2196int rfcomm_can_send_packet_now(uint16_t rfcomm_cid){ 2197 rfcomm_channel_t * channel = rfcomm_channel_for_rfcomm_cid(rfcomm_cid); --- 419 unchanged lines hidden --- |