MySSIX Thing SDK
Project description
MySSIX Thing SDK for Python
이 문서에서는 MySSIX IoT Platform
의 Thing Python SDK를 소개합니다. Thing
은 MySSIX IoT Platform
에서 사용되는 기능의 단위인 Service
를 제공하는 제공자입니다. 이 문서를 통해 Thing
을 실행하고 개발하는 방법에 대해 알 수 있습니다.
MySSIX IoT Platform
에서 Thing
은 크게 2가지로 나뉩니다.
- Big Thing
- Small Thing
이 문서에서는 Python으로 작성된 Big Thing 어플리케이션을 실행하고 개발하는 방법에 대해 설명합니다. Small Thing에 대해서는 Small Thing을 참고해주세요.
Getting Started
Prerequisites
해당 SDK를 사용하기 위해서는 다음과 같은 요구사항을 만족해야합니다.
- Python 3.7+
Install from PyPI
pip3 install big-thing-py
Install from source
git clone https://github.com/sopiot/big-thing-py.git
cd big-thing-py
pip3 install .
# 만약 Thing SDK를 개발하고자 한다면 다음의 명령어를 사용합니다.
# -e 옵션을 사용하면 레포지토리의 코드 변경사항이 바로 Thing 동작에 반영됩니다.
# pip3 install -e .
Usage
예제를 실행하기 전에 MySSIX IoT Platform
의 Middleware
를 먼저 실행해야 합니다.
Middleware Docker 이미지 다운로드 & 실행
docker pull sopiot/sopiot_middleware_ubuntu1804_x64
docker run -it -d --name sopiot_middleware -p 1883:1883 -p 1884:1884 -p 8883:8883 -p 8884:8884 -p 58132:58132 sopiot/sopiot_middleware_ubuntu1804_x64
이후, 다음의 명령어를 통해 기본 예제를 실행할 수 있습니다.
cd samples/big_thing/basic_feature_big_thing
python3 run.py
Thing
이 Middleware
에 등록되면 Thing
의 Service
를 Scenario
를 통해 사용할 수 있습니다. Scenario
는 MySSIX IoT Platform
의 Web Client App을 통해 조작 및 생성할 수 있습니다. -> 따로 Documents 폴더를 생성하여 Web Client App와 관련한 README를 작성해야하는 것이 좋아보임.
Samples
Contributions
License
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
Built Distributions
Hashes for big_thing_py-0.4.1.5-4-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 00c746b4ca41fe1294f23215995a9458a1bbcb9943d94d6749bf652478861ac4 |
|
MD5 | 9942b53d51f83cc1f816ed9ced0fe58c |
|
BLAKE2b-256 | ae655f371876aa3abee1ab8a42ddf0dae579e51c815a09183e5de00521f4e6c3 |
Hashes for big_thing_py-0.4.1.5-3-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 36a52fe6af71972759a90f1e0b2f59314bbe6103da01b3bc9702993a9ef43ec5 |
|
MD5 | 329636b9d6077c37a500dd028a2fdeba |
|
BLAKE2b-256 | 76ecbd5c3ec5024c537aca1d54562663a00a2fce4cd88cc5dbf606d993a7078a |
Hashes for big_thing_py-0.4.1.5-2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5cf79a519ee025bd246070240022ed04740ada71112b0ea40399009c9be43b4e |
|
MD5 | 1c02444320e42a05dcaa72ba571a242f |
|
BLAKE2b-256 | ea359299b31d30f3518eea72e9ebdd07249f6afc103e98c4fa5f315805df7dcd |
Hashes for big_thing_py-0.4.1.5-1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | e8a01cb88eee4e76ed09f2105f293c55bc5f7b57bcc00fef9f2ec4728a3cffea |
|
MD5 | e6c143d083c52d7a5b0cee682bba710e |
|
BLAKE2b-256 | 0e226881173ced6aec0c7fb66340f81efbfedb9f4e4d335d7e1d64843663ac1d |