Skip to main content

sow-filter

Including the basic AMPS library:

#include <amps/ampsplusplus.hpp>

Constructing the command:

AMPS::Command cmd(AMPS::Message::Command::SOW);

// 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.