Skip to content
This repository was archived by the owner on Dec 8, 2025. It is now read-only.

Commit 9081676

Browse files
authored
use server id in twin message (#576)
1 parent a87665f commit 9081676

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

runtime/devicescript/impl_ds.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -216,7 +216,7 @@ void fun2_DeviceScript__twinMessage(devs_ctx_t *ctx) {
216216
return;
217217
devs_ret_gc_ptr(ctx, buf);
218218
buf->data[2] = 0xff;
219-
uint64_t id = jd_device_id();
219+
uint64_t id = devs_jd_server_device_id();
220220
memcpy(buf->data + 8, &id, 8);
221221
memcpy(buf->data + 16, topic, topic_size);
222222
memcpy(buf->data + 16 + topic_size + 1, data, data_size);

0 commit comments

Comments
 (0)