Comments (3)
I experienced that problem at the beginning when my configuration was wrong, either ip or port because I forgot to change your values.
Since I pulled the latest changes since 1.9.4. it does behave differently and ECONNABORTED and ECONNRESET are raised.
For me this means there should be no way that connect blocks indefinitely and has been fixed. I don't think we should care about "backporting" the library to a version that is (hopefully) soon outdated. At least I hope that the new micropython version will be released before the library is finished.
from micropython-iot.
If connect() can now raise an exception we need to change the code around both its calls, don't you agree?
from micropython-iot.
Yes I agree. Now that we have exceptions, we can implement those directly. Would you make a difference between an unreachable host and just a wrong port? unreachable host could be a wrong configuration (or server restart) while a wrong port could be that the server is not running, restarting or the port configuration is wrong but the ip configuration might be right.
On the other hand it makes the library complex and the user has to check his configuration anyway.
from micropython-iot.
Related Issues (13)
- Some thoughts to the general design HOT 10
- bad_wifi executed if wifi not connected at library start HOT 2
- [Improvement] allow my_id to be not new-line terminated HOT 1
- If first message is dupe it won't be recognized HOT 7
- Message loss after reconnect HOT 11
- No direct bytes transmission support with new-line termination HOT 2
- Asynchronous HTTPs requests HOT 2
- One message_id generator for all server clients HOT 1
- Server needs tx flow control HOT 4
- Wifi error due to indentation error HOT 6
- UDP support? HOT 1
- Connection not "ok" if server does not send anything except keepalive HOT 3
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 micropython-iot.