You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I double checked that the only difference between both tests is changing the function prototype from onConnect(BLEServer* pServer) to onConnect(BLEServer* pServer, NimBLEConnInfo& connInfo).
As I need the connInfoparameter, this bug is a bit annoying.
Any idea ?
The text was updated successfully, but these errors were encountered:
You are using v1.4.1, try switching to the master branch if you want to use the latest function signature, otherwise change to the old sig that takes the ble_conn_desc struct.
you can add override.
class ServerCallbacks: public NimBLEServerCallbacks {
void onConnect(BLEServer* pServer,BLEConnInfo& connInfo) override {
deviceConnected = true;
};
Hi,
I'm using this library in version 1.4.1 and identified an unexpected behaviour with server callbacks.
Here is the init code I'm using:
I implemented the server callbacks as shown and, in this situation, the
deviceConnected
variable is correctly set when my android device connects:On the other hand, while using the complete prototype for
onConnect(BLEServer*, NimBLEConnInfo&)
, the callback is not called at all. With:nothing happens
I double checked that the only difference between both tests is changing the function prototype from
onConnect(BLEServer* pServer)
toonConnect(BLEServer* pServer, NimBLEConnInfo& connInfo)
.As I need the
connInfo
parameter, this bug is a bit annoying.Any idea ?
The text was updated successfully, but these errors were encountered: