Skip to content

ตัวอย่าง Code เกี่ยวกับการรับ-ส่งข้อมูลและการสร้าง Service Application ระหว่าง ESP32, Local Broker (mosquitto) และ Dashboard (Thingsboard Cloud) ด้วย MQTT Protocol

Notifications You must be signed in to change notification settings

lllclusterlll/IoT-Sample-Code-2021

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 

Repository files navigation

IoT Sample Code 2021

ตัวอย่าง Code เกี่ยวกับการรับ-ส่งข้อมูลและการสร้าง Service Application (Node-RED) โดยใช้ ESP32, Local Broker (mosquitto) และ Dashboard (Thingsboard Cloud) สื่อสารด้วย MQTT Protocol

Arduino

Basic IO

ตัวอย่าาง Code สำหรับอ่านค่าจาก Sensor ทั้งแบบ Analog และ Digital เพื่อส่งค่าไปแสดงผลยัง Serial Port

Basic MQTT

ตัวอย่าง Code สำหรับรับ-ส่งข้อมูลด้วย MQTT Protocol ผ่าน WiFi เพื่อส่งค่าไปแสดงผลยัง Serial Port และอุปกรณ์อื่น ๆ ที่ใช้ Broker เดียวกัน

Send and Receive MQTT

ตัวอย่าง Code สำหรับรับ-ส่งข้อมูลด้วย MQTT Protocol ผ่าน WiFi เพื่อส่งค่าไปแสดงผลและรับคำสั่งควบคุมจาก MQTT Utility

RPC Thingsboard

ตัวอย่าง Code สำหรับการสื่อสารระหว่าง ESP32 และ Thignsboard Cloud เพื่อแสดงข้อมูลที่อ่านได้จาก Sensor หลายชนิด รวมถึงการรับคำสั่ง (RPC) เพื่อใช้ในการควบคุมอุปกรณ์ (Device, ESP32)

Node-RED

Average Temperature

ตัวอย่าง Code สำหรับการอ่านค่าจาก Temperature Sensor จำนวน 3 ตัว เพื่อหาต่าเฉลี่ยของอุณภูมิห้อง และส่งผลลัพธ์ไปยัง Local Broker

Counter

ตัวอย่าง Code สำหรับอ่านค่าจาก Proximity Sensor จำนวน 1 ตัว เพื่อนับจำนวนที่ตรวจจับวัตถุได้ และส่งผลลัพธ์ไปยัง Local Broker

System Integration

ตัวอย่าง Code สำหรับระบบอัตโนมัติควบคุมการนับชิ้นงานในสายการผลิตและเชื่อมโยงการสื่อสารต่าง ๆ กับ Thingsboard ระบบดังกล่าวเป็นการรวมระบบย่อยหลาย ๆ อย่างเข้าด้วยกัน ได้แก่ Microcontroller, Computer Vision และ IoT

About

ตัวอย่าง Code เกี่ยวกับการรับ-ส่งข้อมูลและการสร้าง Service Application ระหว่าง ESP32, Local Broker (mosquitto) และ Dashboard (Thingsboard Cloud) ด้วย MQTT Protocol

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages