Changes
Jump to navigation
Jump to search
8 bytes added
, 08:55, 9 February 2022
m| Line 3: |
Line 3: |
| | <!--T:1--> | | <!--T:1--> |
| | API also works via WebSocket connection, so you can interact with your Larnitech server from a browser using extensions (such as WebSocket Test Client).<br> | | API also works via WebSocket connection, so you can interact with your Larnitech server from a browser using extensions (such as WebSocket Test Client).<br> |
| − | To get started, you should:<br> | + | To get started, you should:<br><br> |
| | 1. Establish a web socket connection.<br> | | 1. Establish a web socket connection.<br> |
| | <syntaxhighlight lang="xml"> | | <syntaxhighlight lang="xml"> |
| Line 9: |
Line 9: |
| | </syntaxhighlight> | | </syntaxhighlight> |
| | Where: IPADDR – ip address of your metaforsa or DE-MG;<br> | | Where: IPADDR – ip address of your metaforsa or DE-MG;<br> |
| − | PORT – port for API2 (you can get it from LT_Setup => General => API => Websocket port (2041 by default);<br> | + | PORT – port for API2 (you can get it from LT_Setup => General => API => Websocket port (2041 by default);<br><br> |
| | 2. Authorize | | 2. Authorize |
| | <syntaxhighlight lang="json"> | | <syntaxhighlight lang="json"> |