mangoh / mqttclient Goto Github PK
View Code? Open in Web Editor NEWLicense: Mozilla Public License 2.0
License: Mozilla Public License 2.0
Hi,
I tried making the application and updating it on the board.
But I cannot see it in the app list on the board.
Is there something more to be done?
It would be useful to be able to send multiple key / values per mqtt send.
The current mqtt_Send() api function sends a single set.
I noticed that when a simple legatoClient app is mqtt connected to the mqttClient and the user manually stops the legatoClient app. The next time the legatoClient app starts it fails with
"mqtt disconnected: err:1 subErr:-1"
A work around is to mqtt_Disconnect() at the start of legatoClient. I will add a SIGTERM handler to mqtt_Disconnect() which is probably a better workaround.
But maybe mqttClient could detect legatoClient closing and clean up ?
I have found that if IP is disconnected when I call mqtt_Connect() the callback handler fails with isConnected == false. Which seems reasonable.
Later when the IP connection is connected no attempt is made by mqttClient to connect. Not sure if this is expected behaviour?
An mqtt_Status() function would be useful to check the connect / connecting status maybe to report
mqttClient_t.session.isConnected
I can see mqttClient_t* mqttMain_getClient(void); in the original IBM mqtt code. As Legato IPC doesn't support structures I think mqtt_Status() could work around this. Maybe in an ascii Key / Value to allow read access to other structure members as well?
Currently the mqtt user name is automatically set to the product IMEI value.
I think this is ok as a default setting but it would be good to be able to read and set this value via the api
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.