Description

<< Click to Display Table of Contents >>

Navigation:  »No topics above this level«

Description

mapp Services V5.16

The MpLink of an MpTweetCore configuration is used for this function block.

This component can be used to establish a connection with a configured modem. This connection makes it possible to send and receive messages. When MpTweetCore is enabled using input "Enable", then the connection to the server/modem is established automatically. While a connection is being established, this is indicated on output "StatusID". Output "Active" of the component indicates when the connection has been established successfully. If the connection is lost later on, this is indicated by an error on output "StatusID".

Checking the connection via ping

The modem/server that MpTweetCore should connect with and the corresponding settings are entered in the configuration of MpTweetCore. The "Ping" command can be used to check the connection with the configured modem. Output "PingDone" indicates whether the connection with the server/modem has been established successfully.

Sending and receiving messages

MpTweetCore checks regularly for pending requests. The receipt interval (60 seconds by default) can be changed in the configuration. In addition to receiving messages, this function block can also send messages. To do this, define the message and recipient in the parameter structure. The message can be entered directly or MessageID can be specified. This must first be created in the configuration. In this case, the configuration also contains the text that corresponds to MessageID that can be localized using the text system. The recipient can either be specified directly by entering a telephone number or defined previously in the configuration.If the telephone number is specified directly, then it can be defined in various formats. For supported formats, see MpTweetCore configuration under "Recipient".

Additional information

Additional information can be viewed using the Info structure.

Sent and received messages: Parameter "SentMessages" shows how many messages have been sent since MpTweetCore was enabled. "ReceivedMessages" shows how many messages have been received via MpTweetCore during the same time period.

Pending request: Parameter "PendingRequests" shows how many requests are still pending.

Current messages: Parameter "Messages" shows the current messages. The last 10 pending requests are shown. If there are more than 10 pending requests, then the oldest is discarded when a new request is received. The last 10 received messages are managed in the "Info" structure according to the same principle.