sow-and-subscribe-history
Including the basic AMPS library:
#include <amps/ampsplusplus.hpp>
Constructing the command:
AMPS::Command cmd(AMPS::Message::Command::SOWAndSubscribe);
cmd.setTopic(topic);
// set the timestamp or bookmark to start from
cmd.setBookmark("20251231T010101");
The command can now be used in execute or executeAsync.