The
syncmessage function sends a
message to a
synchronization service. The string expression
message_name identifies the message, and an optional string expression
message_value defines a value associated with the message.
This is a CSPro
logic function. Similar functionality is available using the
Sync.sendMessage action. When using actions, multiple synchronization sessions can be created, whereas using CSPro logic, there is only one session per call to
syncconnect.
When sending a message using Bluetooth, if
OnSyncMessage is not defined in the server's code, both the server and client devices will display an error message.
When connected via Bluetooth, the function returns the response returned by
OnSyncMessage. If no such function exists, an error is shown and the function returns a blank string.
If connected to another synchronization service, the response is a blank string unless the service has been
modified to return responses.