davsclaus opened a new pull request, #30943: URL: https://github.com/apache/camel/pull/30943
# Description Part of [CAMEL-23832](https://issues.apache.org/jira/browse/CAMEL-23832). The umbrella ticket stays open. ## Summary This PR rewrites the component description, 9 options (6 shared by the component and the endpoint through `IoTHubConfiguration`, 3 of the component only) and 4 headers of `azure-iothub`. That is 19 description fields in the component JSON. The old texts were mostly short and correct, but they left out how the code behaves: - `deviceId` must match the `DeviceId` of the connection string, or the producer throws `IllegalArgumentException`. - The producer pools device clients per hub, device and module of the connection string. - The SDK supports device twin operations only over MQTT, MQTT_WS, AMQPS and AMQPS_WS. - `sendTimeout` applies to each twin request (get twin, update reported properties) as well as to the telemetry send. - `deviceClientIdleTimeout` and `deviceClientEvictionInterval` use their defaults when set to 0 or less. - The twin update sends only the properties whose value differs from the current reported properties. TWIN prefers the header to a `Map` body, and BOTH requires the header. - A header that is empty does not replace the option. - The `configuration` component option had only "The shared component configuration." as its text. Sources: the Camel code of the module and the Azure IoT device SDK `com.microsoft.azure.sdk.iot:iot-device-client` 2.5.1 (bytecode of `InternalClient`). ### Found, not changed - `protocol=HTTPS` fails for every send, TELEMETRY included. `DeviceClientPool.createClient` always calls `subscribeToDesiredProperties` after it opens the client, and the SDK throws `UnsupportedOperationException` ("Twin operations are only supported over MQTT, MQTT_WS, AMQPS, and AMQPS_WS") for HTTPS. The enum still offers HTTPS. - The producer always sets the content encoding of the telemetry message to UTF-8, also for a binary body, and no option changes it. - `sendTimeout` does not cover opening the device client or the desired-properties subscription. - The pool key is built from HostName, DeviceId and ModuleId only, not from the SharedAccessKey. After a key rotation the producer keeps using a client opened with the old key until that client is evicted or disconnected. ## Tests - There is no new test, as only description text changes. - A script compared the component JSON with the parent commit: only `description` fields changed (19 texts). # Target - [x] I checked that the commit is targeting the correct branch (Camel 4 uses the `main` branch) # Tracking - [x] If this is a large change, bug fix, or code improvement, I checked there is a [JIRA issue](https://issues.apache.org/jira/browse/CAMEL) filed for the change (usually before you start working on it). # Apache Camel coding standards and style - [x] I checked that each commit in the pull request has a meaningful subject line and body. - [x] I ran the formatter and built the module, then regenerated the catalog copy, `dsl/camel-endpointdsl` and `dsl/camel-componentdsl`, and committed all generated changes. # AI-assisted contributions - [x] If this PR includes AI-generated code, commits have proper co-authorship attribution (e.g., `Co-authored-by` trailers) and the PR description identifies the AI tool used. _Claude Code on behalf of davsclaus_ 🤖 Generated with [Claude Code](https://claude.com/claude-code) -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
