Skip to content

HelliWrold1/gateway_data_process

Repository files navigation

Dependencies

MariaDB/MySQL: https://mariadb.com/ or https://www.mysql.com/

sx1302 driver: https://github.com/HelliWrold1/sx1302_hal

lorawan-server: https://github.com/gotthardp/lorawan-server

mosquitto: https://github.com/eclipse/mosquitto

cJSON: https://github.com/DaveGamble/cJSON

paho.mqtt.c: https://github.com/eclipse/paho.mqtt.c

mysql-connector-c: https://dev.mysql.com/downloads/c-api/

MariaDB Connector/C: https://mariadb.com/docs/skysql-previous-release/connect/programming-languages/c/install/

Installation

Compile and start service

cmake --build /home/pi/gateway-data-process/cmake-build-release --target gateway_data_process -- -j 6
cmake -DCMAKE_BUILD_TYPE=Release -DCMAKE_CXX_COMPILER=/usr/bin/g++ -G "CodeBlocks - Unix Makefiles" -S /home/pi/gateway-data-process -B /home/pi/gateway-data-process/cmake-build-release
chmod 755 gdpStart.sh startService.sh
sudo ./startService.sh

Install MariaDB/MySQL

sudo apt install  mysql-server

Install MariaDB Connector/C(Linux)

sudo apt install libmariadb3 libmariadb-dev

Install mysql-connector-c(Linux)

 sudo apt-get install libmysqlclient-dev
sudo apt-get install mosquitto

Mosquitto Configuration

Copy Config File to etc/mosquitto/

sudo cp mqtt/mosquitto.conf etc/mosquitto/mosquitto.conf

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages