private void HandleDisconnected(object sender, MqttConnectionEventArgs e) { Debug.Log("Application disconnected."); connected = false; }
private void HandleConnected(object sender, MqttConnectionEventArgs e) { Debug.Log("Application connected."); connected = true; }
private void HandleConnecting(object sender, MqttConnectionEventArgs e) { Debug.Log("Application connecting to MQTT Broker @" + e.address + ":" + e.port + "..."); connected = false; }
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; }
private void HandleDisconnected(object sender, MqttConnectionEventArgs e) { Debug.Log("ExpanDialSticks disconnected."); connected = false; }
private void HandleConnecting(object sender, MqttConnectionEventArgs e) { Debug.Log("ExpanDialSticks connecting to MQTT Broker @" + e.address + ":" + e.port); connected = false; }