- 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.
- 24小時學(xué)會電腦組裝與維護(hù)
- Learning AngularJS Animations
- Creating Dynamic UI with Android Fragments
- 電腦常見問題與故障排除
- 基于Proteus和Keil的C51程序設(shè)計(jì)項(xiàng)目教程(第2版):理論、仿真、實(shí)踐相融合
- Intel FPGA/CPLD設(shè)計(jì)(高級篇)
- Camtasia Studio 8:Advanced Editing and Publishing Techniques
- Spring Cloud微服務(wù)和分布式系統(tǒng)實(shí)踐
- Mastering Quantum Computing with IBM QX
- 筆記本電腦維修技能實(shí)訓(xùn)
- 微服務(wù)架構(gòu)基礎(chǔ)(Spring Boot+Spring Cloud+Docker)
- Corona SDK Mobile Game Development:Beginner's Guide
- The Machine Learning Workshop
- ARM接口編程
- Arduino案例實(shí)戰(zhàn)(卷Ⅳ)