
org.yamcs.mqtt.DefaultPreparedCommandToMqttConverter Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of yamcs-mqtt Show documentation
Show all versions of yamcs-mqtt Show documentation
Data links for connecting Yamcs to MQTT providers (such as LeafSpace ground stations).
The newest version!
package org.yamcs.mqtt;
import org.eclipse.paho.client.mqttv3.MqttMessage;
import org.yamcs.YConfiguration;
import org.yamcs.commanding.PreparedCommand;
public class DefaultPreparedCommandToMqttConverter implements PreparedCommandToMqttConverter {
@Override
public void init(String yamcsInstance, String linkName, YConfiguration config) {
}
@Override
public MqttMessage convert(PreparedCommand preparedCommand) {
return new MqttMessage(preparedCommand.getBinary());
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy