[
Thanks Barry. I looked again at the examples. I made a change in my code which should not have made any difference, but it did, and now it works OK.
In the NodeResults event the node maps and node ID strings are saved. Actually done in a loop with indexes but the simplified code does this:
‘ Save first node map and node ID string
Node = Results.Get( 0 ) ‘ Get the first node map from the Results list
Node1 = Node ‘ Node1 is a Map
NodeID1 = Node.Get( "ID" ) ‘ NodeID1 is a String
‘ Save second node map and node ID string
Node = Results.Get( 1 ) ‘ Get the second node map from the Results list
Node2 = Node ‘ Node2 is a Map
NodeID2 = Node.Get( "ID" ) ‘ NodeID2 is a String
Later, this code results in sending both messages to Node2:
DL.message.Send( Node1.Get( "ID" ), 1000, "/to_1", Message1 )
DL.message.Send( Node2.Get( "ID" ), 1000, "/to_2", Message2 )
But changing it to directly use the saved ID string works OK. A message is sent to Node 1 and a message is sent to Node 2.
DL.message.Send(NodeID1, 1000, "/to_1", Message1 )
DL.message.Send(NodeID2, 1000, "/to_2", Message2 )
Do not know why this makes any difference, but happy to have it working OK.
Tim