The NordicThingy samples from the SDK are using some functions, while their purpose is not clear to me.
Can someone, please, explain the purpose of
bleDelegate.notifyScanResult(self);
bleDelegate.notifyConnection(self);
etc.
These functions somehow handle weak references in the code?
//! Store a new manager to manage scan results
//! @param manager The manager of the scan results
public function notifyScanResult(manager as DeviceManager) as Void {
_onScanResult = manager.weak();
}
//! Store a new manager to manage device connections
//! @param manager The manager for devices
public function notifyConnection(manager as DeviceManager) as Void {
_onConnection = manager.weak();
}