Comments (3)
For this bug, I think we should be ensuring that the port is specified. There is no default port assignment in the API, so not specifying the port in the serverURI is going to fail anyway. With this approach, creating a client without specifying the port will fail with, perhaps with a new -10 return code (BAD_SERVERURI).
from paho.mqtt.c.
A default port is assigned in file MQTTProtocollOut.c function MQTTProtocol_addressPort().
So it should be okay to not especially specify a port.
from paho.mqtt.c.
This was fixed in the fix for issue #7 and works in the develop branch.
from paho.mqtt.c.
Related Issues (20)
- I can not build static libraries HOT 1
- MQTT Paho C/C++ returns disconnection after 2.5xKeepAlive HOT 2
- MQTTAsync_disconnect could return with success while disconnect command dropped
- Issue with accepting eclipse-paho-mqtt-c in cmake HOT 1
- double free or corruption (!prev) HOT 1
- possible race condition between MQTTClient_destroy and MQTTClient_run HOT 3
- IpV6 link local addresses resolve but don't connect HOT 2
- In MQTTClient, how to set it automatic reconnect after the connection lost HOT 1
- How to switch to another network card when the current network card can not connect to the broker with paho mqtt library HOT 3
- Error from MQTTAsync_cycle() when using SSL connection HOT 4
- Considering NO_PROXY environment variable on Proxy Settings HOT 2
- Cannot shutdown paho gracefully if connection lost to the broker and there are still messages to publish
- Duplicate QoS 0 messages received HOT 2
- QoS and retain both set to 1 then MQTT Client goes to MQTT Close session after time greater than keep alive interval and then reconnection
- code format quality HOT 1
- when using an address without :// mqttclient_create does not cause an error HOT 5
- Compile Issue with OS Defines in VS Code HOT 4
- Cannot connect to MQTT server with SSL on arm-linux
- There is a suspected premature free during the reconnection process HOT 3
- mqtt_enums.CallbackAPIVersion(2) not recognized by supervisor HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from paho.mqtt.c.