Skip to main content

sow-options

Import the AMPS library:

import AMPS

Construct the command:

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

opts = AMPS.Message.Options()
opts.set_timestamp()

# set the topic on the command
cmd.set_topic(topic)
cmd.set_options(opts)

The command can now be used in execute or execute_async.