Clicking on "Edit output", all information available about the selected output option will be displayed. To change the data output
click on "Change" button in the detailed window and select one of the multiple choices from the emergent list.
Figure : Selecting the output application
For this project, we have chosen "Websocket" because it is the preferred method for the company to deliver the end-device data.
•
It's cloud-friendly (existing HTTP traffic optimization can be used)
•
It's bi-directional, real-time interface
•
It's easy to implement
•
It's lower overhead compared to REST
•
It's already supported in all major web browsers
•
It's already supported in many programming languages
13.2. Server configuration
Configuration parameters to be modified in order to be able to communicate to the node and run the whole system.
The
file, located in
services.ini
[loriot]
log_level = "ALL"
log_file = "../../logs/loriot.log"
websocket_url = "wss://eu1.loriot.io/app?id=xxxxxxx&token=xxx-xxxx"
service_url = "http://my-server.com/services/loriot/"
log_level: This level is the minimum level to save logs in the system. Select among these levels:
•
-
OFF: This option deactivate the log.
-
ERROR : It only reports ERROR messages.
-
INFO: It reports ERROR + INFO messages.
-
DEBUG: it reports ERROR + INFO + DEBUG messages.
-
ALL: It reports everything happened in the process.
log_file: The relative path where the log messages will be saved.
•
•
websocket_url: The URL of the websocket listed in the Loriot dashboard. In the last window shown "Application output",
in the second section "Current output setup" there are the target URL and the Authentication Token to access to the API
interface.
Figure : Output setup
folder, has to be updated with the following information in the
data
-40-
Loriot
section.
loriot
v7.0
Need help?
Do you have a question about the Waspmote Plug & Sense! Smart Parking and is the answer not in the manual?