Skip to content

Commit

Permalink
feat(ble_gatt_server): Update to use const parameters (#362)
Browse files Browse the repository at this point in the history
  • Loading branch information
finger563 authored Jan 24, 2025
1 parent 53711c6 commit 2c2279c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions components/ble_gatt_server/include/ble_gatt_server.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -520,7 +520,7 @@ class BleGattServer : public BaseComponent {
/// Get the connected device name
/// @param conn_info The connection information for the device.
/// @return The connected device name.
std::string get_connected_device_name(NimBLEConnInfo &conn_info) {
std::string get_connected_device_name(const NimBLEConnInfo &conn_info) {
if (!server_) {
logger_.error("Server not created");
return {};
Expand Down Expand Up @@ -581,7 +581,7 @@ class BleGattServer : public BaseComponent {
/// Get the RSSI of the connected device
/// @param conn_info The connection information for the device.
/// @return The RSSI of the connected device.
int get_connected_device_rssi(NimBLEConnInfo &conn_info) {
int get_connected_device_rssi(const NimBLEConnInfo &conn_info) {
if (!server_) {
logger_.error("Server not created");
return {};
Expand Down

0 comments on commit 2c2279c

Please sign in to comment.