ServerUpdate Event
Fired when the currently connected server updates its name or available services.
Syntax
public event OnServerUpdateHandler OnServerUpdate; public delegate void OnServerUpdateHandler(object sender, BleclientServerUpdateEventArgs e); public class BleclientServerUpdateEventArgs : EventArgs { public string Name { get; } public string ChangedServices { get; } }
Public Event OnServerUpdate As OnServerUpdateHandler Public Delegate Sub OnServerUpdateHandler(sender As Object, e As BleclientServerUpdateEventArgs) Public Class BleclientServerUpdateEventArgs Inherits EventArgs Public ReadOnly Property Name As String Public ReadOnly Property ChangedServices As String End Class
Remarks
This event is fired under one of two conditions, both of which involve some sort of server-side change other than the value of a subscribed characteristic having changed (subscribed characteristic value updates are delivered through the Value event).
If the server's name has changed, this event is fired with the new name in the Name parameter, and the ServerName property is updated as well.
If the server's services have changed, this event is fired with a non-empty value in the ChangedServices parameter.