March 2018
Beginner to intermediate
410 pages
10h 40m
English
Any incoming events related to our subscription can be accessed through event handlers on the subscription object that is returned from the subscription request. To follow these events, we define three event handlers:
this.subscription.OnStateChanged +=
Subscription_OnStateChanged;
this.subscription.OnFieldsReceived +=
Subscription_OnFieldsReceived;
this.subscription.OnErrorsReceived +=
Subscription_OnErrorsReceived;
}
}
For two of these events, we will simply output their state to the event log, so we can follow the process:
private void Subscription_OnStateChanged(object Sender, SensorDataReadoutState NewState) { Log.Informational("Sensor subscription state changed.", NewState.ToString()); } private void ...Read now
Unlock full access