Skip to main content

deltapub-explicitkey

Import the AMPS library:

import AMPS

Construct the command:

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

# set the topic and data (required)
cmd.set_topic(topic).set_data(data)

# set SOW key
cmd.set_sow_key(the_key)

The command can now be used in execute_async with None for the message handler.