Definition
message_to_dp(event_name, strdata)
Features
After providing a message to the user, a response message is returned when a response message is received from the user.
Parameters
|
Parameter Name |
Data Type |
Default Value |
Description |
|---|---|---|---|
|
event_name |
string |
- |
Eventname to provide to the user
|
|
strdata |
string |
- |
Data to be provided to users
|
Return
|
Value |
Description |
|---|---|
|
string |
Event name entered when calling Dart-API (sendUserEventResponse) |
|
string |
strdata entered when calling Dart-API (sendUserEventResponse) |
Exception
|
Exception |
Description |
|---|---|
|
DR_Error (DR_ERROR_TYPE) |
Parameter data type error occurred |
|
DR_Error (DR_ERROR_VALUE) |
Parameter value is invalid |
|
DR_Error (DR_ERROR_RUNTIME) |
C extension module error occurred |
|
DR_Error (DR_ERROR_STOP) |
Program terminated forcefully |
Example
tp_log('message send!')
event, data = message_to_dp('wait', 'true')
tp_log('message get!')