9. Callback Server
For using the SigFox and LoraWAN callback functionality is needed to configure a back-end web server application that will
receive SigFox and LoraWAN requests.
Libelium provides the source files of a standard back-end web server application, including a simple web graphic interface to
configure SmartParking nodes. Users can deploy those source files as their customer server app for receiving the SigFox and
LoraWAN backend requests in order to provide the proper answer to the Smart Parking devices through the service chosen.
Deploying this simple back-end web server application has standard requirements for any web application: Apache server,
PHP libraries, static and public IP. After this process is finished, SigFox and LoraWAN backends should be configured using the
resulting URL:
https://my_server.com/path/zip/extracted
No need of DB is needed for this simple implementation provided by Libelium but it is very easy to extend its functionality
implementing connections to MySQL, PostgreSQL or any other DB storage if required.
NOTE: Customers have to ask for this source code to Libelium
9.1. Installation
Before installing the web server, you have to bear in mind that this computer has to be accessible from the Internet, SigFox and
LoraWAN backends will try to connect to this server. We recommend to implement existing security policies for web services:
SSL, Firewall, user credentials and tools to avoid DoS attacks.
Libelium back-end web server application is developed using PHP language, so any web server supporting this technology
may be used. Apache web server with PHP libraries is a suitable configuration to be used. DB Storage packages like MySQL,
Postgresql or any other database engine is optional for custom requirements.
Visit the following URL's to find some tutorials about performing this installation steps in several Operating Systems.
Ubuntu:
•
https://help.ubuntu.com/community/ApacheMySQLPHP
Windows:
•
http://www.ampsoft.net/webdesign-l/how-to-install-apache-php-mysql.html
•
Mac:
http://jason.pureconcepts.net/2012/10/install-apache-php-mysql-mac-os-x/
Furthermore, some platforms use other technologies apart from the web server in order to get a fully functional callback server
running.
Visit the following URL's to read how to install nodejs and npm in the web server.
•
Ubuntu:
http://www.hostingadvice.com/how-to/install-nodejs-ubuntu-14-04/
Windows:
•
http://blog.teamtreehouse.com/install-node-js-npm-windows
Mac:
•
http://shapeshed.com/setting-up-nodejs-and-npm-on-mac-osx/
9.2. Deploying
Extract the ZIP file provided by Libelium containing the standard back-end web server application source files in your server.
Configure the web server with the path where the source files has been extracted. Following instructions describe how to
perform the configuration using Ubuntu and Apache environment. Create a new configuration file my_server.conf, usually
Apache web server context configuration files should be placed in /etc/apache2/sites-available directory.
The following example of an Apache configuration can be used to change the paths according to your own installation:
Sales Department
after buying the nodes.
-22-
Callback Server
v7.0
Need help?
Do you have a question about the Waspmote Plug & Sense! Smart Parking and is the answer not in the manual?