Skip to main content

subscribe-select-list

Including the basic AMPS library:

#include <amps/ampsplusplus.hpp>

Constructing the command:

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

cmd.setTopic(topic).setOptions(AMPS::Message::Options::Select("-/,+/id,+/qty"));

The command can now be used in execute or executeAsync.