deltapub-correlation
Including the basic AMPS library:
#include <amps/ampsplusplus.hpp>
Constructing the command:
AMPS::Command cmd(AMPS::Message::Command::DeltaPublish);
// Set the topic and data (required)
cmd.setTopic(topic).setData(data);
// Set the correlation ID
cmd.setCorrelationId(cross_ref);
The command can now be used in executeAsync with a default-constructed (empty) MessageHandler.