Skip to main content

sow-delete-data

Including the basic AMPS library:

#include <amps/ampsplusplus.hpp>

Deleting the message that matches the message passed in:


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

// Set the topic and the message to remove
cmd.setTopic(topic).setData(data);

The command can now be used in executeAsync with a default-constructed (empty) MessageHandler.