Skip to content

The status data of 485 temperature and humidity sensor and 485 door status sensor are collected by the raspberry PI gateway and reported to the cloud; At the same time, after receiving the command from the cloud, raspberry PI gateway will control the relay action, and the relay will return the current state to the cloud.

License

Notifications You must be signed in to change notification settings

Tuya-Community/Raspberry_PI_Gateway_connects_to_iot_platform

Repository files navigation

Overview

Raspberry Pi gateway can collect status data of RS-485 temperature and humidity sensors and door sensors and report data to the cloud. After receiving commands from the cloud, Raspberry Pi gateway will control the relay action accordingly. After command execution, the relay will return the current state to the cloud through the gateway.

Get started

Prerequisites

Ubuntu and Debian

sudo apt-get install make cmake libqrencode-dev

Compile the code

mkdir build && cd build
cmake ..
make

Run the demo

./bin/data_model_basic_demo

Other

Two demos are used to build a composite Raspberry Pi gateway. One demo (in C) works for interaction with the Tuya IoT Development Platform. The other demo (in Python) runs the program used to collect data from the RS-485 devices.

Download the demo (in C) at: https://github.com/Tuya-Community/Raspberry_PI_Gateway_connects_to_iot_platform.git

Download the demo (in Python) at: https://github.com/Tuya-Community/485_sub-devices_connect_to_the_Raspberry_PI_gateway.git

About

The status data of 485 temperature and humidity sensor and 485 door status sensor are collected by the raspberry PI gateway and reported to the cloud; At the same time, after receiving the command from the cloud, raspberry PI gateway will control the relay action, and the relay will return the current state to the cloud.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages