sow-and-sub-filter
Including the basic AMPS library:
#include <amps/ampsplusplus.hpp>
Constructing the command:
AMPS::Command cmd(AMPS::Message::Command::SOWAndSubscribe);
// set the topic and filter on the command
cmd.setTopic(topic).setFilter("/id > 1"); // Submit filter as string
The command can now be used in execute or executeAsync.