Skip to main content

sow-orderby

Including the basic AMPS library:

#include <amps/ampsplusplus.hpp>

Constructing the command:

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


cmd.setTopic(topic).setOrderBy("/name ASC, /orderId DESC");

The command can now be used in execute or executeAsync.