Skip to main content

sow-and-subscribe-conflate

Including the basic AMPS library:

#include <amps/ampsplusplus.hpp>

Constructing the command:

AMPS::Command cmd(AMPS::Message::Command::SOWAndSubscribe);
cmd.setTopic(topic);

AMPS::Message::Options opts;
opts.setConflation("250ms");

// set other options as needed

cmd.setOptions(opts);

The command can now be used in execute or executeAsync.