Record soundbox MQTT heartbeat
This commit is contained in:
@ -158,6 +158,7 @@ pattern write devices/%u/uplink/#
|
||||
pattern read devices/%u/downlink/#
|
||||
pattern write devices/%u/heartbeat
|
||||
pattern read soundbox/%u/down
|
||||
pattern write soundbox/%u/down/heartbeat
|
||||
```
|
||||
|
||||
Untuk firmware QF100 sample saat ini, config server mengembalikan topic berbasis serial number:
|
||||
@ -166,7 +167,7 @@ Untuk firmware QF100 sample saat ini, config server mengembalikan topic berbasis
|
||||
soundbox/{dev-sn}/down
|
||||
```
|
||||
|
||||
Jika masih memakai user MQTT bersama `qris-backend` untuk pilot, rule `topic readwrite soundbox/#` wajib ada. Jika nanti per-device credential memakai username sama dengan `dev-sn`, rule `pattern read soundbox/%u/down` bisa dipakai untuk membatasi tiap device hanya membaca topic miliknya sendiri.
|
||||
Jika masih memakai user MQTT bersama `qris-backend` untuk pilot, rule `topic readwrite soundbox/#` wajib ada. Jika nanti per-device credential memakai username sama dengan `dev-sn`, rule `pattern read soundbox/%u/down` dan `pattern write soundbox/%u/down/heartbeat` bisa dipakai untuk membatasi tiap device hanya membaca/publish heartbeat topic miliknya sendiri.
|
||||
|
||||
Permission:
|
||||
|
||||
@ -387,6 +388,7 @@ devices/{deviceId}/uplink/config/ack
|
||||
devices/{deviceId}/heartbeat
|
||||
soundbox/{dev-sn}/down
|
||||
soundbox/{dev-sn}/up
|
||||
soundbox/{dev-sn}/down/heartbeat
|
||||
```
|
||||
|
||||
## Provisioning Credential Device
|
||||
|
||||
Reference in New Issue
Block a user