Python based gateway service starter kit for DevIoT.
This code is based on gateway-python-SDK. You need to install SDK before using this repo.
You need python 2.7 to use python SDK and starter kit.
If python SDK is not installed, you need to install the SDK package before using this starter kit.
Clone the SDK git repository
git clone https://github.com/ailuropoda0/gateway-python-sdk.git
cd gateway-python-sdk
Install the SDK package on python 2
python setup.py install
cd ../
git clone https://github.com/ailuropoda0/gateway-python-starter-kit.git
cd gateway-python-starter-kit
python main.py --account your_deviot_id@mail.domain
You should use '--account' argument to set account. main.py uses public DevIoT server as a default value. If you want to utilize your custom DevIoT server, then use '--deviot-server' and '--mqtt-server' arguments.
After running this command, there will be some logs that your gateway is registered. If there are some error logs, it means that there are some problems to connect your gateway to the DevIoT server.
The detail of the way to build your gateway using SDK is in DEVNET Learning Labs.