Справочник Пользователя для Libelium Comunicaciones Distribuidas S.L. PARKING-V1
-51-
Services
Figure : Output setup
Clicking in “Authentication token” link, a new window will be shown with the tokens generated in the Loriot
application.
application.
To create a new one, just click on “Generate another authentication token” button, and a new record will be
created in the table. Finally, copy the full URL hitting on “Show full URL” and paste the URL in this parameter of the
created in the table. Finally, copy the full URL hitting on “Show full URL” and paste the URL in this parameter of the
VHUYLFHFRQȴJXUDWLRQȴOH
Figure : Generating an application token
•
service_url:
7KH85/WRDFFHVVWRWKH/RULRWVHUYLFHLQ\RXUFDOOEDFNVHUYHUSUHYLRXVO\FRQȴJXUHG
(
http://my_server.com/services/loriot/
)
12.3. Start the web-socket connection
This platform requires an additional step. Start the process which establish the connection to the Loriot server in
order to receive and send information in all nodes.
order to receive and send information in all nodes.
Open a SSH connection to the web server in a terminal and navigate to the directory
your_web_server_path/
services/loriot
. Execute following command to create the web-socket communication:
nohup nodejs websocket.js >>../../logs/loriot.log 2>&1 &
Kill this process to stop the web-socket communication.