clean up
This commit is contained in:
1 parent
e749dc0619
commit
63c1e3f833
2 files changed
+2
-1
No files matched your search
@@ -99,6 +99,7 @@ void connect_callback(uint16_t conn_handle)
|
||||
|
||||
void rssi_changed_callback(uint16_t conn_hdl, int8_t rssi)
|
||||
{
|
||||
(void) conn_hdl;
|
||||
Serial.printf("Rssi = %d", rssi);
|
||||
Serial.println();
|
||||
}
|
||||
|
||||
@@ -86,7 +86,7 @@ void loop()
|
||||
BLEConnection* connection = Bluefruit.Connection(conn_hdl);
|
||||
|
||||
// get the RSSI value of this connection
|
||||
// monitorRssi() must be called previously (in callback)
|
||||
// monitorRssi() must be called previously (in connect callback)
|
||||
int8_t rssi = connection->getRssi();
|
||||
|
||||
Serial.printf("Rssi = %d", rssi);
|
||||
|
||||
Reference in new issue
Block a user