ux4iot
Search
K

Changelog

Version 3.6.1

Fixes
  • Include the telemetry key in the actual telemetry message when it is used as the customConnectionState key

Version 3.6.0

Features & Fixes
  • Add support for custom connectionStateKey
  • Disable smart app insights rules
  • Fix subscriptions endpoints not accepting empty list of subscription requests
Update subrepositories

Version 3.5.0

Features
  • Add new endpoints
    • PUT subscriptions Bulk subscribe to telemetry, deviceTwin or connectionState
    • DELETE subscriptions Bulk unsubscribe to telemetry, deviceTwin or connectionState
  • Enable shared-access-key to be used in lastValue endpoints
Update subrepositories accordingly
Compatible endpoints to [email protected]:

Version 3.4.0

  • Send warning, error logs to Application Insights

Version 3.3.0

  • Use latest commit as default version
  • Remove backwards compatibility for ux4iot v2. (Remove publishing of last values over websocket after grant was added)

Version 3.2.1

  • Fix bug where connectionState was not published

Version 3.2.0

  • Add option connectionStateOnTelemetry to enable/disable a connection state update whenever a telemetry message is received (enabled by default)

Version 3.1.0

  • Fixed bug where the ux4iot instance was in a broken state, because the custom resource's function app for the managed application was not deployed correctly
  • Update all dependencies of ux4iot-server and submodules
  • Revert cache to work with ux4iot 2.0 timestamps to ensure backwards compatibility of the redis cache

Version 3.0.0

Features
The subscription flow was updated. Previously, whenever a grant was added, ux4iot began to publish messages to a room, specific to the grant data. Now adding a grant does nothing other than telling ux4iot that a specific session has the permission to subscribe to SD (SD = telemetry, connection state, device twin, d2c messages) This breaking change also changes the way the client's websocket receives messages for telemetry. Previously all telemetry in a device's message was split by all keys and for each telemetry key, a single message was published. Now, only one message per device will be published for all subscribed telemetry of that device. A client will therefore just receive one message per device and per connection state, d2c message, devicetwin or telemetry.
  • breaking Request to PUT /grant endpoint no longer subscribe to SD
  • breaking Change grant request type parameter key from "grantType" to "type"
  • breaking Change grant request type parameter values from
    • subscribeToTelemetry -> telemetry
    • subscribeToConnectionState -> connectionState
    • subscribeToDeviceTwin -> deviceTwin
    • subscribeToD2CMessages -> d2cMessages
    • modifyDesiredProperties -> desiredProperties
    • invokeDirectMethod -> directMethod
  • Add new endpoint PUT /subscription to subscribe to SD which depends on grants
  • Add new endpoint DELETE /subscription to unsubscribe from SD which depends on grants
  • Add unit test cases for state management in ux4iot
  • Make parameter 'telemetryKey' in GET /lastValue/:deviceId/:telemetryKey optional, omitting it will return all last values for the given device
  • Add GET /deviceTwin/:deviceId endpoint to retrieve the last received device twin
  • Add GET /connectionState/:deviceId endpoint to retrieve the last received connection state
  • ux4iot-admin-node
    • breaking Change methodname 'revokeAll' to 'revokeAllSessions'
    • Add methods for endpoints
      • subscribe -> PUT /subscription
      • unsubscribe -> DELETE /subscription
      • invokeDirectMethod -> POST /directMethod
      • getLastTelemetryValues -> GET /lastValue/:deviceId/:telemetryKey
      • getLastDeviceTwin -> GET /deviceTwin
      • getLastConnectionState -> GET /connectionState
      • patchDesiredProperties -> PATCH /deviceTwinDesiredProperties
  • ux4iot-react Complete refactoring of internal ux4iot-react subscription logic. Ux4iot 3.0 delivers telemetry messages in a new way. It will aggregate all subscribed telemetry in one message. Ux4iot-react will distribute these messages over all used hooks. Ux4iot-react 3.0 will use the new subscription mechanism for ux4iot 3.0 in that it uses separate requests for grants and subscriptions. During these changes, a lot of types were changed, which then resulted in breaking changes. These changes however are very minor so there won't be much effort to update from 2.x to 3.0.
Overview of changes:
  • Unify all message callbacks in hooks
    export type MessageCallbackBase<T> = (
    deviceId: string,
    data: T | undefined,
    timestamp: string
    ) => void;
    export type TelemetryCallback = MessageCallbackBase<Record<string, unknown>>;
    export type DeviceTwinCallback = MessageCallbackBase<TwinUpdate>;
    export type ConnectionStateCallback = MessageCallbackBase<boolean>;
    export type D2CMessageCallback = MessageCallbackBase<Record<string, unknown>>;
  • breaking useConnectionState onData: (connectionState: boolean) => void - changed to onData: ConnectionStateCallback
  • breaking useD2CMessages onData: (data: T, timestamp: string) => void - changed to onData: D2CMessageCallback
  • breaking useDeviceTwin onData: (twin: Twin) => void - changed to onData: DeviceTwinCallback
  • breaking useMultiTelemetry onData: (deviceId: string, telemetryKey: string, telemetryValue: unknown, timestamp: string | undefined) => void - changed to onData: TelemetryCallback
  • breaking useTelemetry onData<T>: (data: T, timestamp: string | undefined) => void - changed to onData<T>: MessageCallbackBase<T>
  • breaking Rename type RawD2CMessageCallback to D2CMessageCallback
  • breaking useConnectionState is now returning boolean instead of {connected: boolean}
If you're not using onData callbacks, you shouldn't have any breaking changes.
  • Add useMultiConnectionState hook
  • Add onSubscriptionError callback, firing when there are errors on posting requests to subscribe to ux4iot data
  • Update ux4iot-shared types to updated ux4iot 3.0 types
  • Add typeguards for all message types
  • Add separate state handling in ux4iot-react

Version 2.0.0

Breaking
  • Rename customTimestampProperty to customTimestampKey
Misc
  • Changed info log statements that were debug level to debug
  • Add new setting customDeviceIdKey to be able to set a custom key in messages to be used as deviceId

Version 1.7.0

  • Make it possible to disable TTL for connection cache
  • Add parameter throttlingParameter to specify the number of milliseconds with which to throttle the telemetry updates sent via websockets. Set this to -1 to disable throttling. This is the default.
  • Add special branch experimental from which the app definition ux4iot-experimental is updated.

Version 1.6.0

  • The connection state received via Event Hub / IoT Hub is cached. This makes it possible to use the useConnectionState hook, even if no IoT Hub is used, as you can simulate the connected/disconnected messages using an Event Hub
  • Add parameter customTimestampProperty with default value _ts so that the timestamp can optionally be passed as part of the body of a message. You can still continue to use the message properties
  • Add parameter connectionStateCacheTTL. This indicates the number of seconds that the connection state should be cached. You can set it to 0 to set the time-to-live to infinity. The default value is 60
  • Fix inconsistencies regarding contents of device twin.

Version 1.5.0

  • Add persistence of complex telemetry values
  • Reduce Azure infrastructure costs: Application Insights
  • Fix a problem with too low max open file limit in reverse proxy

Version 1.4.0

  • Reduce Azure infrastructure costs: Storage Accounts

Version 1.3.0

  • Reduce Azure infrastructure costs: Application Insights, Storage Accounts

Version 1.2.1

  • ARM Template improvements

Version 1.2.0

  • Add support for timestamps
  • Add parameters for ARM template:
    • Add SKUs (small, standard) to make less cost-intensive instances possible (sku)
    • Make it possible to inject the primary and secondary secrets (primaryAdminSecret, secondaryAdminSecret)
    • Make the log level configurable (logLevel)

Version 1.1.0

  • The consumer group to use for reading from Event Hub or IoT Hub can be configured
  • Slightly improved the wording and detail in the creation screen
  • Fix an issue with patchDesiredProperties
  • Add a UI for manual testing. Is deployed here.
  • Fix issues with using ux4iot without an IoT Hub, i.e. only using an Event Hub
  • Improve memory attribution between containers
  • The DNS label can not be overwritten with the parameter dnsLabelOverride
  • The custom sub-resource pages for the admin connection strings and websocket url load much faster now