Receive message by message point
Messages = ReceiveMessage(MessagePointName[, WaitMessage[, WaitingTime]])
The name of the messaging point through which the message is received. Matrix of strings
If WaitMessage is true, then the program is waiting for a non-empty message; otherwise, having received any message, including an empty one, the program continues. Default: %f
Messaging point waitnig message from message point timeout (ms). Makes sense if the parameter WaitMessage=%t. If WaitingTime = -1, then waiting time for message received is infinite. (default -1)
Received messages
Receives a message through a messaging point
//Creating a new message point messagePointInformation = CreateMessagePoint('MessagePoint2','192.168.0.153',3369); disp(messagePointInformation); //Receiving messages Messages = ReceiveMessage('MessagePoint2', %f); disp(Messages); //Deleted the created message point messagePointInformation = DestroyMessagePoint('MessagePoint2'); disp(messagePointInformation); | ![]() | ![]() |