- Hands-On Embedded Programming with C++17
- Maya Posch
- 189字
- 2021-08-20 10:20:49
Example – club room monitoring
In this section, we will be looking at a practical implementation of an SBC-based solution that performs the following functionality for a club room:
- Monitors the status of the club door's lock
- Monitors the club status switch
- Sends status change notifications over MQTT
- Provides a REST API for the current club status
- Controls status lights
- Controls the power in the club room
The basic use case here is that we have a club room for which we want to be able to monitor the status of its lock, and have a switch inside the club to regulate whether the non-permanent power outlets in the club are powered on or not. Turning the club status switch to on would provide power to those outlets. We also want to send out a notification over MQTT so that other devices in the club room or elsewhere can update their status.
MQTT is a simple, binary publish/subscribe protocol on top of TCP/IP. It offers a lightweight communication protocol, suitable for resource-restricted applications such as sensor networks. Each MQTT client communicates with a central server: the MQTT broker.
- 新型電腦主板關(guān)鍵電路維修圖冊(cè)
- SDL Game Development
- 嵌入式技術(shù)基礎(chǔ)與實(shí)踐(第5版)
- 電腦常見(jiàn)故障現(xiàn)場(chǎng)處理
- AMD FPGA設(shè)計(jì)優(yōu)化寶典:面向Vivado/SystemVerilog
- Camtasia Studio 8:Advanced Editing and Publishing Techniques
- 計(jì)算機(jī)組裝與維修技術(shù)
- 基于Apache Kylin構(gòu)建大數(shù)據(jù)分析平臺(tái)
- Arduino BLINK Blueprints
- 筆記本電腦維修實(shí)踐教程
- Istio服務(wù)網(wǎng)格技術(shù)解析與實(shí)踐
- Mastering Machine Learning on AWS
- 可編程邏輯器件項(xiàng)目開(kāi)發(fā)設(shè)計(jì)
- 零基礎(chǔ)輕松學(xué)修電腦主板
- 現(xiàn)代多媒體技術(shù)及應(yīng)用