Skip to content

The status data of 485 temperature and humidity sensor and 485 door status sensorare 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. The Raspberry PI Gateway …

License

Notifications You must be signed in to change notification settings

Tuya-Community/tuya-iot-link-sdk-embedded-c-iotcore-develop-lora-485

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. The Raspberry Pi gateway can also collect the temperature, humidity, and light intensity data received by LoRa devices and report the data to the cloud.

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

./bindata_model_basic_demo

Other

Two demos are used to build a composite Raspberry Pi gateway. One demo (in C) works for communication with LoRa devices and 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/tuya-iot-link-sdk-embedded-c-iotcore-develop-lora-485.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 sensorare 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. The Raspberry PI Gateway …

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages