Skip to content
This repository was archived by the owner on Aug 5, 2024. It is now read-only.

Commit bc4c235

Browse files
committed
fix mqtt route
1 parent a964232 commit bc4c235

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/mqtt.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ export async function setup() {
2828
ingest: async (topic, message, device) => {
2929
if (!client.connected) return
3030

31-
const mqTopic = `devs/from/${device.id}/${topic}`
31+
const mqTopic = `devs/from/${device.dev.rowKey}/${topic}`
3232
client.publish(
3333
mqTopic,
3434
Buffer.from(JSON.stringify(message), "utf-8"),

0 commit comments

Comments
 (0)