When I tried to connect to the solace mqtt broker, it gave me an error 4.
Temp adding in the following to the 'conn' function allowed it to work (replacing the username/password with my actual user/pass)
conn_opts.keepAliveInterval = 20;
conn_opts.cleansession = 1;
conn_opts.username = " my username ";
conn_opts.password = " my password ";
Could potentially pass in a dict to the function to allow the end user to provide a range of supported options & any addition ones in the future.
May want to support other options. Ref: https://www.eclipse.org/paho/files/mqttdoc/MQTTClient/html/_m_q_t_t_client_8h.html#aaa8ae61cd65c9dc0846df10122d7bd4e https://www.eclipse.org/paho/files/mqttdoc/MQTTClient/html/struct_m_q_t_t_client__connect_options.html#a9f1cdffc99659fd4e2d20e6de3c64df0
When I tried to connect to the solace mqtt broker, it gave me an error 4. Temp adding in the following to the 'conn' function allowed it to work (replacing the username/password with my actual user/pass)
conn_opts.keepAliveInterval = 20; conn_opts.cleansession = 1; conn_opts.username = " my username "; conn_opts.password = " my password ";
Could potentially pass in a dict to the function to allow the end user to provide a range of supported options & any addition ones in the future.