publish-explicitkey
Import the AMPS library:
import AMPS
Construct the command:
cmd = AMPS.Command(AMPS.Message.Command.Publish)
# 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.