Skip to main content

sow-and-delta-subscribe-filter

Import the AMPS library:

import AMPS

Construct the command:

cmd = AMPS.Command(AMPS.Message.Command.SOWAndDeltaSubscribe)

# set the topic and filter on the command
cmd.set_topic(topic).set_filter('/id > 1') # Submit filter as string

The command can now be used in execute or execute_async.