Endpoint
POSThttp[s]://[RaPTrServerHostname]:[SAPGatewayLocalPort]/SAPCustomEventMessage
Purpose
This optional endpoint is used to display a custom message on a RaPTr Scanner UI. The message can be shown in a specified color for a specified duration, along with an optional audible tone.
Request
HeadersContent-Type: application/json
Request Body Format
The JSON request must be wrapped in a "d"
property.
Parameter Descriptions:
Field | Type | Description |
---|---|---|
LocationID |
unsigned int | Unique identifier of the RaPTr unit. |
ResponseString |
string | Text message displayed to the operator. |
ResponseColor |
string | HTML color code (#RRGGBB ) used for the message background. |
DwellTime |
uint | Duration in milliseconds to display the message. 0 uses scanner default. |
AudibleKey |
string | Key for the audible alert to be played (optional but recommended). |
Response
HTTP Status: 200 OK
Response Body:
Example
Request:
Body:
Response:
Notes
-
Ideal for dynamic operator alerts such as instructions or warning messages.
-
Make sure the color and message are legible on your specific scanner UI theme.
-
DwellTime
is in milliseconds, unlike some other endpoints that use seconds.
Comments
0 comments
Please sign in to leave a comment.