Configuring clients from broker

  • As part of provisioning brokers send a template configuration similar to:

    [Certs]

    BrokerCertChain=@BROKER_CA_BUNDLE_FILE@

    CertFile=@CLIENT_CERT_FILE@

    PrivateKey=@CLIENT_KEY_FILE@


    [Brokers]

    local=local;8883;localhost;127.0.0.1

    external=external;8883;@EXTERNAL_BROKER_HOST@;@EXTERNAL_BROKER_IP@

    docker=docker;8883;@DOCKER_BROKER_IP@;@DOCKER_BROKER_IP@


    [BrokersWebSockets]

    local=local;443;localhost;127.0.0.1

    external=external;443;@EXTERNAL_BROKER_HOST@;@EXTERNAL_BROKER_IP@

    docker=docker;443;@DOCKER_BROKER_IP@;@DOCKER_BROKER_IP@%


    Apologies if i've missed the documentation that describes this capability, but Is it possible send other configuration details to clients? For instance if you wanted all clients connecting a broker to use a custom default keep alive interval (rather than the 30 minute default)?


    Based on my understanding, for the python client its not possible to read these other client option values from a file configuraion, they need to be provided by the client separately.

  • Hi msell,


    The python client does not read this client options from the config. The broker list and the proxy information is supported but not other client options like mentioned. They have to set in the client.


    Thanks,

    Viji