Skip to main content

sow-keys

Import the AMPS library:

import AMPS

Construct the command:

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

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

cmd.set_topic(topic)

# Key string contains AMPS sow keys
cmd.set_sow_keys(comma_delimited_key_string)

The command can now be used in execute or execute_async.