cowen71 / mqtt-labview Goto Github PK
View Code? Open in Web Editor NEWAN MQTT Driver implementation for LabVIEW
AN MQTT Driver implementation for LabVIEW
Hi, is there a performance test between MQTT vs HTTP ?
Hi, thanks for making this library. It's really nice!
However, I think I found a bug:
The MQTT spec (3.1.2.10) specifies that the Keep Alive bytes are in order MSB, LSB. But in mqttCmdConnect\mqttCmdBuildVarHdr.vi the high and low bytes of the keepalive value are swapped before building the CONNECT header. I suspect that that swap is unnecessary, and results in the wrong value being used by the broker for the keep alive time. I verified that with Wireshark by checking the transmitted TCP packet of the CONNECT command.
Best regards,
Victor
When we use this library to connect to mosquitto v 1.4.x and 1.5.x it works fine. When we try to connect to mosquitto 1.6.x broker, the connection can not be established. Is this problem known? Does https://github.com/victorclaessen/mqtt-LabVIEW solve this problem? Thank you
Error message in mosquitto broker:
Socket error on client <unknown>, disconnecting.
mosquitto.conf:
log_dest stdout
log_type error
log_type warning
log_type notice
log_type information
log_type debug
allow_anonymous true
user root
port 1883
protocol mqtt
listener 9001
protocol websockets
persistence true
persistence_file infrastructure_messaging_mosquitto.db
persistence_location /mosquitto/data/
autosave_on_changes false
autosave_interval 60
I stumbled upon this project after having some headaches connecting C implementations of the MQTT client with LabVIEW Realtime. I forked it intending to PR my changes, but honestly I've refactored a lot of the code and I'm not sure if you'll want it or not. It would definitely be a breaking change to any existing installs you have.
Highlights:
A lot of this was to make MQTT suitable to match up with some other internal communications libraries (TCP/UDP/UDP Multicast). There's actually some other wrappers I've built above this library that I'm not sure if I should include or not around JSON formatted messages and multiple queues receiving a copy of a message.
Let me know if you want me to PR all this back to you or if it would be better to rename my fork and carry it forward as it's own implementation.
Hello,
First of all i want to thank for the mqtt library. I have run into overflow problem when i want to send data that is bigger than 128. Normally, the payload must be 8-byte. On the other hand, payload counts 9 byte or 10 byte during the data between 128 and 256.
I made same change in the sub-vi (mqttCmdCalculateByteArrayLength.vi ) to solve this problembut it doesnt work.
I have added my changes to the attachment.
before
after
Hello cowen71, Is there any way I can use this mqtt library in LV2012?
Thank you.
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.