Skip to main content

subscribe-conflated-key

Importing the AMPS client library:

using AMPS.Client;
using AMPS.Client.Exceptions;

Constructing the command:

Command cmd = new Command(Message.Commands.Subscribe)
.setTopic(topic)
.setOptions(Message.Options.Conflation("1s")
+ Message.Options.ConflationKey("/id"))
;

The command can now be used in execute or executeAsync.