Reply
Posts: 44
Registered: ‎02-09-2017

connection_disconnected even not received

HI,

 

I am using BLE112 based solution and connect to it from either Win or iOS app. 

Now when apps are being closed and thus, connection is broken, I expect sensor code to receive the connection_disconnected() event, but this does not happened. 

 

Supervision interval is set to 1 s. Is there some other timeout that should be configured? 

Posts: 2,809
Registered: ‎08-25-2015

Re: connection_disconnected even not received

Hi,

 

It should happen, what SDK version are you using? Is it a BGScript based application, and if so can you share it?

 

Regards,

Tiago

Posts: 44
Registered: ‎02-09-2017

Re: connection_disconnected even not received

Yes, this is a BGScript application, based on your "standard" SPP over BLE Example.

Unfortunately cannot share full source code, the right belongs to my customer. I was hoping there is something we do not configure properly ... 

Posts: 2,809
Registered: ‎08-25-2015

Re: connection_disconnected even not received

Hi,

 

No, there's no configuration required, the event should just come when the connection is dropped from either side or if the devices go out of reach of each other.

 

Regards,

Tiago

Posts: 44
Registered: ‎02-09-2017

Re: connection_disconnected even not received

Ok, thanks, good to know, will search further ...