Пример #1
0
 private void HandleDisconnected(object sender, MqttConnectionEventArgs e)
 {
     Debug.Log("Application disconnected.");
     connected = false;
 }
Пример #2
0
 private void HandleConnected(object sender, MqttConnectionEventArgs e)
 {
     Debug.Log("Application connected.");
     connected = true;
 }
Пример #3
0
 private void HandleConnecting(object sender, MqttConnectionEventArgs e)
 {
     Debug.Log("Application connecting to MQTT Broker @" + e.address + ":" + e.port + "...");
     connected = false;
 }
Пример #4
0
 private void HandleConnected(object sender, MqttConnectionEventArgs e)
 {
     Debug.Log("Application connected.");
     expanDialSticks.client.Publish(MQTT_SYSTEM_RECORDER, System.Text.Encoding.UTF8.GetBytes(CMD_START), MqttMsgBase.QOS_LEVEL_AT_MOST_ONCE, false);
     connected = true;
 }
Пример #5
0
 private void HandleDisconnected(object sender, MqttConnectionEventArgs e)
 {
     Debug.Log("ExpanDialSticks disconnected.");
     connected = false;
 }
Пример #6
0
 private void HandleConnecting(object sender, MqttConnectionEventArgs e)
 {
     Debug.Log("ExpanDialSticks connecting to MQTT Broker @" + e.address + ":" + e.port);
     connected = false;
 }