Skip to content

Commit 2c2279c

Browse files
authored
feat(ble_gatt_server): Update to use const parameters (#362)
1 parent 53711c6 commit 2c2279c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

components/ble_gatt_server/include/ble_gatt_server.hpp

+2-2
Original file line numberDiff line numberDiff line change
@@ -520,7 +520,7 @@ class BleGattServer : public BaseComponent {
520520
/// Get the connected device name
521521
/// @param conn_info The connection information for the device.
522522
/// @return The connected device name.
523-
std::string get_connected_device_name(NimBLEConnInfo &conn_info) {
523+
std::string get_connected_device_name(const NimBLEConnInfo &conn_info) {
524524
if (!server_) {
525525
logger_.error("Server not created");
526526
return {};
@@ -581,7 +581,7 @@ class BleGattServer : public BaseComponent {
581581
/// Get the RSSI of the connected device
582582
/// @param conn_info The connection information for the device.
583583
/// @return The RSSI of the connected device.
584-
int get_connected_device_rssi(NimBLEConnInfo &conn_info) {
584+
int get_connected_device_rssi(const NimBLEConnInfo &conn_info) {
585585
if (!server_) {
586586
logger_.error("Server not created");
587587
return {};

0 commit comments

Comments
 (0)