LoRa App Server makes use of MQTT for publishing and receivng application payloads. Mosquitto is a popular open-source MQTT server, but any MQTT broker implementing MQTT 3.1.1 should work. In case you install Mosquitto, make sure you install a recent version.
In order to install Mosquitto, execute the following command:
sudo apt-get install mosquitto
Please refer to the Mosquitto download page for information about how to setup Mosquitto for your platform.
LoRa App Server persists the gateway data into a PostgreSQL database. Note that PostgreSQL 9.5+ is required.
You also need to enable the
(trigram) extension. Example to enable this extension (assuming your
LoRa App Server database is named
Start the PostgreSQL prompt as the
sudo -u postgres psql
Within the PostgreSQL prompt, enter the following queries:
-- change to the LoRa App Server database \c loraserver_as -- enable the extension create extension pg_trgm; -- exit the prompt \q
To install the latest PostgreSQL:
sudo apt-get install postgresql
Please refer to the PostgreSQL download page for information how to setup PostgreSQL on your platform.
LoRa App Server stores all non-persistent data into a Redis datastore. Note that at least Redis 2.6.0 is required.
To Install Redis:
sudo apt-get install redis-server
Please refer to the Redis documentation for information about how to setup Redis for your platform.