Giter Club home page Giter Club logo

mqtt-client-object's Introduction

mqtt-client-object

[mqtt_client] puredata object that implements MQTT client (based on Eclipse PAHO) and allows to interact with MQTT broker

GPL3 license


run build scripts from repository root to compile (currently tested on macOS)

version 0.0.2

Acknowledgements

mqtt-client-object's People

Contributors

i-n-g-o avatar njazz avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

i-n-g-o

mqtt-client-object's Issues

build script not working on macOS

Hi,

I'm trying to compile mqtt-client-object for pd on MacOS via terminal and the build script seems not to work

Error: could not load cache 
make: *** No targets specified and no makefile found.  Stop.

Thanks to the great help of @i-n-g-o I think I'm halfway to the solution. As mentioned I did the following steps:

  • cd into build/osx folder
  • cmake ../..

These steps seemed to work.

When I do the next step:

make -j 8

I can see some progress, but after 76% I get some warnings:

mqtt-client-object/third_party/paho.mqtt.c/src/StackTrace.c:112:34: warning: cast to smaller integer type 'int' from 'pthread_t' (aka 'struct _opaque_pthread_t *') [-Wpointer-to-int-cast]
                Log_stackTrace(trace_level, 9, (int)my_thread->id, my_thread->current_depth, name, line, NULL);

And after 96% I get some Errors:

In file included from /Users/ms/Desktop/mqtt-client-object/modules/mqtt-client/src/mqtt_client.cpp:1:
In file included from /Users/ms/Desktop/mqtt-client-object/modules/mqtt-client/../mqtt-object-common/src/MQTTClient.hpp:1:
In file included from /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/functional:502:
In file included from /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/typeinfo:60:
In file included from /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/exception:81:
In file included from /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/cstdlib:85:
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/stdlib.h:93:15: fatal error: 'stdlib.h' file not found
#include_next <stdlib.h>
              ^~~~~~~~~~
1 error generated.
make[2]: *** [modules/mqtt-client/CMakeFiles/mqtt_client_pd.dir/src/mqtt_client.cpp.o] Error 1
make[1]: *** [modules/mqtt-client/CMakeFiles/mqtt_client_pd.dir/all] Error 2
make[1]: *** Waiting for unfinished jobs....
1 error generated.
make[2]: *** [modules/mqtt-client/CMakeFiles/mqtt_client_max.dir/src/mqtt_client.cpp.o] Error 1
make[1]: *** [modules/mqtt-client/CMakeFiles/mqtt_client_max.dir/all] Error 2
make: *** [all] Error 2

Could you help me with this part as well. Thanks a lot!

dll crash on windows, trying to rebuild

Hi, I'm using mqtt_client with purr-data for a class. It works great for students working on Mac OS. On windows, we get an error:

The procedure entry point _Unwind_Resume could not be located in the dynamic link library C:\Program Files\Purr Data\extra\mqtt_client.dll

I thought I might try to recompile the library from source, but I have scant experience building on windows with mingw.

A few questions:

  • Did you all use mingw32 installed through MSYS2 to test the windows build?
  • Do you have any tips/instructions on build environment setup?
  • Have you tried this with purr-data on windows, as opposed to puredata?

Thanks!

crash on windows when publishing

Hi.

When running the external on windows (compiled with mingw) using Pd i experience crashes when publishing a value.
The exception code is: 0xc0000094. Which apparently is a division by zero (STATUS_INTEGER_DIVIDE_BY_ZERO)

Connecting and subscribing works fine.

I guess this happens somewhere in the mqtt library.

Do you have any idea what that could be?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.