function sends a string message from one device to another device that is acting as a Bluetooth server
. The string expression message_name
identifies the message, and an optional string expression message_value
defines a value associated with the message. The client device sends this message to a Bluetooth server.
The application running on the Bluetooth server must have a user-defined function
with the name OnSyncMessage
that takes two string parameters and returns a string. While the syncserver
function is running, the OnSyncMessage
function is called anytime a message is received and the return value of that function is returned to the Bluetooth client.
The function returns the message returned by the OnSyncMessage
function running on the Bluetooth server. If no message is returned, a blank string is returned.