Skip to main content

sow-and-delta-paginated

Import the AMPS library:

import AMPS

Construct the command:

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

# set options
opts = AMPS.Message.Options()
opts.set_OOF().set_no_empties() # set other options here
opts.set_top_n(20).set_skip_n(30)


# set the topic and options on the command
cmd.set_topic(topic).set_options(str(opts)).set_order_by("/id DESC")

The command can now be used in execute or execute_async.