08.12.2017, 11:51
Like this, port is optional and defaults to 1883:
If you need to set a custom port then pass it as a second parameter to connect:
Code:
broker = '10.85.0.4'
If you need to set a custom port then pass it as a second parameter to connect:
Code:
client:connect('10.85.0.4', 12345)