-
Notifications
You must be signed in to change notification settings - Fork 0
en MQTT
Masyukov Pavel edited this page Jul 9, 2026
·
1 revision
Full documentation: docs/mqtt.md
- Broker:
mqtt://<mqttLogin>:<mqttPassword>@<CRM-IP>:1883 - Login/password — from the post card in CRM (
settings.mqttLogin/settings.mqttPassword) - Default login =
serialNumber - Native protocol:
{dt_pref}/{serial}/state/{suffix} - Default
dt_pref=washpro -
serial=posts.serialNumberin CRM (exact match in topic)
- User:
system(password — Settings → MQTT (CRM); bootstrap —MQTT_PASSWORDin.env) - Do not use
systemon post panels
- Mosquitto ACL: post writes only to
washpro/{own-serial}/# - Serial spoofing in JSON does not affect other posts' statistics
- Sync: setup wizard → MQTT or post save
| Suffix | Content |
|---|---|
process |
balance, pause, mode, card |
totals |
finance before/after collection |
usages |
client/service counters |
credit |
credit from panel |
card |
NFC / collection |
Posts → ⚙ or post page → Device Settings:
- mode prices 0–9;
- commands (dropdown);
- MQTT prefix.
{dt_pref}/{serial}/set/prices
{dt_pref}/{serial}/set/command
POST /api/crm/post-device/posts/{serial}/prices
POST /api/crm/post-device/posts/{serial}/command
POST /api/crm/post-device/mqtt/sync-users
mosquitto_pub -h localhost -p 1883 -u system -P 'PASS' -q 1 \
-t 'washpro/SN123/set/prices' -m '{"0":50,"1":80}'- Above the table: Load more (100 records) — next page from API
- Table footer: Per page 20/40/60/80/100, Back/Next, Load more
./scripts/migrate-to-mqtt.sh./scripts/fix-mqtt.sh