From 8a1e732ff25453d1f558127188d6720add87ed16 Mon Sep 17 00:00:00 2001 From: Tolentino Cotesta Date: Mon, 26 Aug 2024 15:14:30 +0200 Subject: [PATCH] Update thingsboard.h issue #38 --- examples/customHTML/thingsboard.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/examples/customHTML/thingsboard.h b/examples/customHTML/thingsboard.h index 58939eed..0abadd75 100644 --- a/examples/customHTML/thingsboard.h +++ b/examples/customHTML/thingsboard.h @@ -87,7 +87,8 @@ function createNewDevice() { var token = $(TB_DEVICE_TOKEN); token.focus(); token.value = obj.credentialsValue; - openModalMessage('Write device attributes', 'Device provisioned correctly.
Do you want to set client attributes on ThingsBoard server?', setDeviceClientAttribute); + options[token.id] = token.value; // Manual update, because, it doesn't fire "change" event... + openModal('Write device attributes', 'Device provisioned correctly.
Do you want to set client attributes on ThingsBoard server?', setDeviceClientAttribute); }); }