- TBEL Instant Report of the contact tracing badge: (count + 1) / 2 as an int, so an even count gets timeOffset
- SocketSync UUID: prefix ...AD4657 for tails 0x00-0x1E (Plug Bluetooth Gateway 1.5, Table 7)
- beacons in the order of their numbers, gaps included (Container Tracker 5.7 Offline Cache)
- time1..time8 of the container Offline Cache without the codec's 8 hours, as gnssTime1..
- badge tracker Heartbeat without the SNR field (before firmware 0x0501) decided by the length
- helmet pressure / 10 (Helmet Tracker 6.3, unit 0.1 Pa)
- gateway firmware V1.08 from VER, as in Bluetooth Gateway 4.4.2
- shared helpers for the charge state, Register, Heartbeat and Acknowledgment; one MODES/BANDS table
- the test keeps the default TTN/TTI converters under 30000 characters; 4 more uplinks in the fixture
Nashorn passes the payload as characters, so decoding it again as UTF-8 failed on a
unit like ℃ and the uplink was lost. Tested with simulated TTN uplinks of the
Lansitec datasheet examples, TBEL and JS give the same values.
The Lansitec codecs wrap everything in bytes, give numbers as strings with units and
get some fields wrong. The default converter unwraps them, names the keys as the
Lansitec datasheets do, decodes the wrong fields from the raw bytes, and writes the
Register message as attributes. The JS default reads the payload as UTF-8.
- UPLINK_CONVERTER step with "default": true and no template: the wizard builds the converter ThingsBoard creates for a new integration of the method's type (INTEGRATION_TTN: TTN) from the UI assets, and installs, overwrites and updates it like a template of the package.
- Installed items: a device package whose default converter differs from ThingsBoard's default converter now shows "New converter available". It opens the update of the installed version, which brings the converter to the default one. A package that took another package's converter overwrites it with the shared-entity warning.
- After an update overwrites an entity, the other packages that recorded its checksum record the new one.
- INTEGRATION step "metadata": its entries are added to the integration's metadata at create, overwrite, use existing and update; the entries the integration has stay. An entry that maps a name to itself (profile.<name>: <name>) isn't added. The checksum of an integration leaves out its metadata.
- The default TTN and TTI converters take the profile name from the integration metadata entry profile.<brand_id>-<model_id> when there is one.
- Form field "resettable": a field the user changed shows a button that puts its default value back.
- Integrations and converters need the INTEGRATIONS feature, as through their API
- An overwritten or created entity gets its step's attributes, as at install
- The checksum ignores debug settings and the default profile flag
- The installed item is locked during the update; a plan of another installed version is refused
- The integration check before save is shared with IntegrationController
- Without a checksum: dashboard image links and rule chain server fields don't count as changes;
with nothing to compare against, the entity counts as changed
- Renamed steps keep their form values, entity and check state
- An entity referring to an entity the update creates again is overwritten
- Instructions before the Update step resolve the installed entities
- The download link of a changed entity is one translation key
The wizard no longer saves the entities itself and reverts them from
snapshots on a failure. It plans the update and the server applies it.
- POST /api/iot-hub/installedItems/{id}/deviceUpdate takes the entity of
each step, resolved from the new version's template, and saves all of
them with the new version of the installed item in one transaction.
Any failure rolls everything back. The audit log, version control and
attributes are written after commit.
- The server checks the plan: only the package's entities or confirmed
conflicts are overwritten, the device and its credentials never change,
and an entity changed since the check fails the update (version).
- GET .../deviceUpdate/check reports for each entity whether it still
exists, is shared with other packages, or was changed since install,
by a checksum the server keeps in the install state at install and on
update. Packages installed before keep the comparison with the template.
- An entity changed since install is overwritten only after a warning,
with a link to download its current version. A shared one shows the
shared warning.
- Only texts changed: the version is recorded without the wizard.
- Try again checks the update again. Errors show validation messages and
a common message for anything else.
A script passes a numeric-string metadata ts through unchanged, and the telemetry
parser reads it as a long, so the metadata keys must join that element too.
With its own element at the uplink ts, a metadata key also returned by the script
overwrote the script's value. The metadata keys now go into the script's element at
that ts, only where the script has no value, as for an object result. Without such an
element they keep their own element at the uplink ts.
The metadata telemetry keys went into a separate array element without ts, so they
were saved at the server time, while the script's own values were saved at the
uplink time. The element now takes ts from the metadata, the same ts the script reads
and the one an object result already uses for these keys.
A new TTN or TTI integration now starts with the converter the IoT Hub LoRaWAN
packages install. A device registered from the LoRaWAN Device Repository gets the
profile <brand_id>-<model_id> and its decoded values as telemetry, with a Milesight-style
history list kept at each record's time. Any other device gets the LoRaWAN Device
profile and its raw payload as data. The device is named by its end device ID and
added to a group named after the application.
The TBEL and JS defaults are the same script. ConverterControllerTest runs both through
the real default v2 configuration for TTN and TTI, so ui-ngx now also copies that
configuration to the classpath.
The remove dialog named the kept converter, integration and other entities inside
one sentence, which was hard to read. It now says how many other installed packages
use them and lists them with tb-image-references, one per row, each linking to the entity.
- Entities other installed device packages use are kept as they are on
update, as deleting the package already does, instead of being
overwritten with this package's templates.
- A version without a dashboard step keeps the installed dashboard only
if it still exists; a deleted one is no longer tracked.
- On update, Close reports the update as done only once the new version
is registered.
- A kept integration keeps httpEndpoint and baseUrl for the instructions.
- The gateway output and docker-compose resolution are in one helper.
PROD-9096
- An entity the user took with "Use existing" at install is kept as it is
on update instead of being overwritten with the package's template.
- Only a 404 counts as "deleted since"; any other failure to load a
previous entity fails the step, so a transient error can't create a
second device with new credentials.
- A rejected update registration (success=false) is shown on the step and
can be retried instead of closing as updated.
- An overwritten dashboard keeps its owner.
- Ids of entities deleted since are no longer re-tracked.
- The transport fields take the current Device connectivity settings.
- A version without a dashboard step keeps the installed dashboardId.
- A failed version lookup on update no longer errors unhandled.
PROD-9096
Updating an installed device package deleted everything the package created,
the device included, so its telemetry and attributes were lost, and nothing
was installed again.
Now the update opens the install wizard of the new version over the installed
package. It keeps the install method and the form values, finds the entities
by the ids in the install state (so a renamed profile is still found), keeps
the device and gateway as they are (id, credentials, history) and overwrites
the device profile, converters, integration, dashboard and rule chain with the
new templates under their current names. The installed item then takes the
new version through registerDeviceUpdate. The server no longer updates a
device package by itself.
PROD-9096
- A form field with checkConnection makes Next: Provisioning check the
integration connection. The form waits while it runs, and a failed check
opens an alert titled with the install method that shows the field's
checkConnectionFailedText (or a general text) and keeps the user on the
form. The separate Check connection button is gone.
- A field with portField moves a port pasted at the end of its value into
the named field.
- BOOLEAN fields render as a slide toggle in a form row, with the help text
in the hint icon.
The renderer looked a field's row up in a map (rowOf) from the template, and
called hasHintBox() / isInHintBoxRow() for every field on each change
detection. FormRow now carries hasHintBox, computed in ngOnChanges when the
fields or reviewMode change, and fieldTemplate gets the row in its context.
The subscriptSizing binding and the mat-hint checks read the flag; the map
and both methods are gone. hasFieldError() stays a call, since it depends on
the control state.
The group doc comment in FormFieldDefinition now describes the panel:
consecutive fields with the same group share one.
(cherry picked from commit 0777a0edbd)
isLoopbackHost takes a bare host since 66ed132, but addTransportFields
passed the server value as is. The Device connectivity host isn't
validated, so it can be saved as localhost:1883; DeviceConnectivityUtil.getHost
returns that unchanged. It then wasn't seen as loopback, the fields became
read-only, and the sketch / docker-compose got localhost with no way to
correct it.
addTransportFields now reduces the server host with toBareHost once, and
uses the bare host for the loopback check, the default value and the hints.
(cherry picked from commit 917258d941)
- The device install form shows placeholders, templated defaults, an
Advanced section and a ThingsBoard connection section with the MQTT host
and port, cleans pasted values, shows errors after the user leaves a field
and does not let the browser autofill ThingsBoard credentials.
- A field marked by the package checks the integration connection.
- The TTN and TTI install methods are named The Things Stack Sandbox and
The Things Stack Cloud.
- The TTN converter metadata includes the coding rate and the gateway channel.
- Deleting or updating a device package keeps the integrations, converters
and other entities that another installed device package uses, and the
delete dialog names them before the user confirms.
- The Open button of an installed item names what it opens.