subscribe-filter
Including the basic AMPS library:
#include <amps/ampsplusplus.hpp>
Constructing the command:
AMPS::Command cmd(AMPS::Message::Command::Subscribe);
cmd.setTopic(topic);
cmd.setFilter(filter);
The command can now be used in execute or executeAsync.