3using System.Threading.Tasks;
24 public override string Name =>
"ClockDiff";
36 await
XmppServerModule.SendErrorMessage(
"No synchronization client available.",
string.Empty, ResponseCallback);
44 StringBuilder sb =
new StringBuilder();
47 sb.Append(
"Difference: ");
49 sb.Append(
", Latency: ");
53 await ResponseCallback(sb.ToString(),
string.Empty);
58 string.Empty, ResponseCallback);
71 public override string[]
HelpParagraphs =>
new string[] {
"Measures the difference in clocks, as well as network latency, between the broker and the `SOURCE`." };
Static class managing the runtime environment of the IoT Gateway.
static SynchronizationClient SynchronizationClient
XMPP Synchronization Client.
bool Ok
If the response is an OK result response (true), or an error response (false).
string ErrorText
Any error specific text.
Event arguments containing the response of a clock synchronization request.
long Latency100Ns
Measured network latency in one direction, in units of 100 ns.
long ClockDifference100Ns
Measured clock difference between source clock and client clock, in units of 100 ns....
An administrative command taking one parameter.
Measures the difference between the internal clock and a specified clock source.
override string Name
Command name
override string[] HelpParagraphs
Markdown description of syntax.
ClockDiff()
Measures the difference between the internal clock and a specified clock source.
override async Task Execute(ChatState State, string[] Arguments, string OrgMessage, ResponseCallbackHandler ResponseCallback)
Executes the command.
override string ParameterName
Name of parameter.
Service Module hosting the XMPP broker and its components.
delegate Task< string > ResponseCallbackHandler(string Markdown, string MessageId)
Delegate for response callback handler methods.