Skip to main content

sow-filter

Import the basic AMPS library:

using AMPS.Client;
using AMPS.Client.Exceptions;

Constructing the command:

Command cmd = new Command(Message.Commands.SOW) 
// set the topic and filter on the command
.setTopic(topic)
.setFilter("/id > 1") // Submit filter as string
;

The command can now be used in execute or executeAsync.