Skip to content

Commit 11d3bea

Browse files
bretambroseBret Ambrose
and
Bret Ambrose
authored
Topic aliasing options to mqtt5 client builder (#532)
* Topic aliasing options to mqtt5 client builder --------- Co-authored-by: Bret Ambrose <[email protected]>
1 parent 65bb400 commit 11d3bea

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

awsiot/mqtt5_client_builder.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,9 @@
8686
handled while the client is not connected. In particular, if the client is not connected, then any operation
8787
that would be failed on disconnect (according to these rules) will also be rejected.
8888
89+
**topic_aliasing_options** (:class:`awscrt.mqtt5.TopicAliasingOptions`): Configuration options for how the client
90+
should use the topic aliasing features of MQTT5
91+
8992
**retry_jitter_mode** (:class:`awscrt.mqtt5.ExponentialBackoffJitterMode`): How the reconnect delay is modified
9093
in order to smooth out the distribution of reconnection attempt timepoints for a large set of reconnecting
9194
clients.
@@ -288,6 +291,8 @@ def _builder(
288291
client_options.ack_timeout_sec = _get(kwargs, 'ack_timeout_sec')
289292
if client_options.websocket_handshake_transform is None:
290293
client_options.websocket_handshake_transform = websocket_handshake_transform
294+
if client_options.topic_aliasing_options is None:
295+
client_options.topic_aliasing_options = _get(kwargs, 'topic_aliasing_options')
291296

292297
# Connect Options
293298
if client_options.connect_options.client_id is None:

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ def _load_version():
4040
"Operating System :: OS Independent",
4141
],
4242
install_requires=[
43-
'awscrt==0.19.6',
43+
'awscrt==0.19.16',
4444
],
4545
python_requires='>=3.7',
4646
)

0 commit comments

Comments
 (0)