MQTT Devices
จัดการ Credential และสถานะเครื่องทั้งหมดในระบบ Sakhai
Devices
1 MQTT credential ต่อ 1 physical client
| Status | Machine | Type | Branch | MQTT Username | Topic Prefix |
|---|
Production Connection
ค่าที่เครื่องซัก เครื่องอบ และ Drop-off ใช้เชื่อมต่อจาก Internet
MQTT Host
mqtt.sakhaimgt.comPort
8883Protocol
MQTTS / TLSTopic Pattern
sakhai/{branch}/{type}/{machine}/{action}Port 1883 ถูก bind เฉพาะ localhost/Docker network ไม่เปิดออก Internet
Sakhai Backend MQTT Service
ใช้ account sakhai-backend สำหรับ backend service และมีสิทธิ์กับ sakhai/#
Internal Hostemqx:1883
Client ID / Usernamesakhai-backend
หลัง Rotate ต้องนำ Password ใหม่ไปอัปเดตที่ sakhai-backend-mqtt-service