sow-orderby
Import the AMPS library:
import AMPS
Construct the command:
cmd = AMPS.Command(AMPS.Message.Command.SOW)
cmd.set_topic(topic)
cmd.set_order_by("/name ASC, /orderId DESC")
The command can now be used in execute or execute_async.
Import the AMPS library:
import AMPS
Construct the command:
cmd = AMPS.Command(AMPS.Message.Command.SOW)
cmd.set_topic(topic)
cmd.set_order_by("/name ASC, /orderId DESC")
The command can now be used in execute or execute_async.