GPI Board (REST API)

Module description	REST API

Query to retrieve the latest GPI event, returns an XML-document.

GET http://<IP_ADDR>:7901/gpi?module_id=<N>

Parameter description:

GET – HTTP GET query.

<IP_ADDR> – server IP address.

module_id – GPI_Board service sequence number (starts with 1).

Example of a query to the server:

http://localhost:7901/gpi?module_id=2

Example of the server response to GPI Board System/HotKey:

<GPI ReceivedTime="2018-03-28T14:00:42.904"> <Attr name="last_key">Alt+F1</Attr> </GPI>