08-24-2018 07:34 AM
hi everyone, i'm trying to do a MQTT client in LabWindows and found somethings on internet like paho project, the prebuild bynaries can be downloaded from this page Eclipse Paho Downloads
i've tryed to import the code in CVI and worked correctly, attached the project that works, but i have to build my application in 64 bit and no 32 bit because the .lib and .dll where compiled in 64 bit i suppose.
this give me a problem because in my software i use the SQL Toolkit with this provider "Microsoft.Jet.OLEDB.4.0" that works only in 32 bit, i've tryed to use the "Microsoft.ACE.OLEDB.12.0" without success because give me the error in picture
do you have any idea about how i can get this works? i have already tryed to install this Microsoft Access Database Engine 2010 Redistributable but the x64 tells me that i already have the x86 installed and can't install another one.
in my target PC i have installed the x64 and my software doesn't work for the same problem.
i have thinked to try this way Calling a DLL in LabWindows™/CVI™: Explicit Linking vs. Implicit Linking (Dynamic vs. Static) call the .dll explicit and not implicit, can be a good way?
Solved! Go to Solution.
08-24-2018 08:30 AM
also with external linking to dll work only in 64 bit application, attached my test... i'm thinking to do it with 2 separated application and pass variable with the network shared variable library, i don't like it because i prefer to have an all in one source code and don't use the NSV.
maybe you know some other trick
08-26-2018 08:38 AM - edited 08-26-2018 08:39 AM
The type of linking doesn't matter! An application can only load DLLs that have the same bitness than the application itself. This is by design from Microsoft, who likely tried to avoid the whole disaster of code thunking when going from 16 bit to 32 bit. It may have looked like a good idea back then, but was an immense effort which still had many problems and troubles, for something that got obsolete within a few years.
09-03-2018 12:34 AM
next step will be testing mosquitto that seems to have a 32 bit dll. i will update this thread when i will do this work
09-20-2018 04:50 AM
good news, paho release a 32 bit dll that work in CVI with IMPLICIT linking.
i think this thread can be closed
02-15-2022 08:15 AM
Hi,I have the same problem as you had. I have now implemented the paho Libraries Implicit in my CVI project. Unfortunately, it still doesn't work. Could you possibly send me your example project?
02-16-2022 01:45 AM
This is my command line example program, after i've developed also a software with GUI but it's our company knowledge and i cannot give outside
02-16-2022 06:38 AM
Thank you for the example program. It helps me a lot as I can see why my application isn't working. I'll be happy to reply as soon as I've fixed my problem.
08-10-2023 05:58 AM
thank you also by me.
I'm trying to read, on remote by internet, my photovoltaic system (totalVBatt, TotalCurrent,and singleCellVolt), using an ESP8266 (SonOff TH16). And i would like to use labwindowsCvi to build my GUI. Your example is very usefull for me.
Do you think is enought to use this server "tcp://test.mosquitto.org:1883" for my purpose ? (more or less 20 data update each 5 second)
ManyThanks.
08-25-2023 05:07 PM
Mosquito is a good option . i just performed a system that use MQTT By Mosquitto