Confirm the machine interface
Send the controller label, wiring photos, and the action the machine must perform.
การเชื่อมต่อ MQTT & API
คู่มือเส้นทางระหว่าง backend, ตัวควบคุม QuLink และเครื่อง vending หรือ self-service endpoint, topic, authentication และ payload จะยืนยันตาม firmware
Transport choice
Both can exist in one project. The choice depends on whether you need a response now or a stream of events.
| Use case | HTTPS API | MQTT |
|---|---|---|
| Backend sends a command | Request / response | Publish to command topic |
| Backend receives events | Webhook or polling | Subscribe to event topic |
| Best fit | Server-triggered actions | Real-time status and telemetry |
| Failure handling | HTTP status + retry | QoS + reconnect + idempotency |
The exact transport available on a machine depends on the controller, firmware, and network path.
ความเหมาะสมของโปรเจกต์
รูปแบบการเชื่อมต่อ
HTTPS สำหรับคำสั่งและ response, MQTT สำหรับ event แบบเรียลไทม์ identity, topic, authentication และ QoS ยืนยันตามโครงการ
ขั้นตอนการทำงาน
Send the controller label, wiring photos, and the action the machine must perform.
Confirm command names, slot or channel mapping, timeout, and result fields.
Issue device identity, token, topic prefix, TLS mode, and QoS for the project.
Validate command, machine action, event identity, retry, and reconnect on a sample.
ตัวอย่าง API
ฟิลด์คำสั่งขึ้นอยู่กับ interface ของเครื่อง, firmware profile และว่าการชำระเงินหรือแอปของคุณเป็นตัว trigger
POST /v1/devices/{device_id}/commands
Authorization: Bearer
Content-Type: application/json
{
"command": "vend",
"slot": "B04",
"reference_id": "ORDER-1001",
"timeout_ms": 15000
}
# MQTT topic map
devices/{device_id}/commands
devices/{device_id}/events
Project RFQ
ส่งรุ่นเครื่อง, interface controller, การทำงานที่ต้องการ และฟิลด์ข้อมูล เราจะยืนยันสัญญา API/MQTT และการทดสอบตัวอย่าง
If you are unsure about the exact interface, send what you have. Photos often answer more than a long spec.
FAQ
MQTT 3.1.1 over TLS 1.2 with QoS 1 is the baseline. Broker, topic prefix, and authentication are confirmed per firmware profile.
Yes. The controller can deliver commands and events to your own API, webhook, or broker. The exact flow is confirmed on a sample.
The contract uses reference_id and event_id. Retry and deduplication behavior is confirmed in the firmware profile and tested on one machine.
Event buffering and retry are part of the integration plan. Capacity, power-cycle retention, and backfill behavior must be tested before making a persistent-cache claim.
Use case ที่เกี่ยวข้อง