TheCommRequestResponse..::..PublishRequestAsync Method (TheThing, TheThing, String, array<String>[]()[][], String, array<Byte>[]()[][])
Sends a TSM message to the targetThing and return the matching response message. Uses a timeout of 60 seconds.
Namespace:
nsCDEngine.CommunicationAssembly: C-DEngine (in C-DEngine.dll)
Syntax
public static Task<TSM> PublishRequestAsync( TheThing senderThing, TheThing targetThing, string messageName, string[] txtParameters, string PLS, byte[] PLB )
Parameters
- senderThing
- Type: nsCDEngine.Engines.ThingService..::..TheThing
Thing from which the message is sent.
- targetThing
- Type: nsCDEngine.Engines.ThingService..::..TheThing
Thing to which the message is to be sent.
- messageName
- Type: String
Name of the message, as defined by the target thing
- txtParameters
- Type: array<String>[]()[][]
Array of simple string parameters, to be attached to the message's TXT field, as defined by the target thing. txtParameters must not contain ":" characters.
- PLS
- Type: String
String payload to be set as the message's PLS field, as defined by the target thing.
- PLB
- Type: array<Byte>[]()[][]
Binary pauload to be set as the message's PLB field, as defined by the target thing.