Coder Social home page Coder Social logo

sintef-9012 / unrealmosquitto Goto Github PK

View Code? Open in Web Editor NEW
46.0 13.0 16.0 483 KB

A MQTT client with blueprint support for Unreal Engine 4, based on Mosquitto.

License: Eclipse Public License 2.0

C++ 26.18% C# 1.20% C 72.62%
mqtt mqtt-client unreal-engine-4 unreal-engine blueprint mosquitto

unrealmosquitto's Introduction

UnrealMosquitto

A MQTT client with blueprint support for Unreal Engine 4, based on Mosquitto.

unrealmosquittoscreenshot

How to install

Because this has not been developed as a plugin, the installation process is slightly very cumbersome. Only Windows x64 is supported so far.

  1. Make sure your project is set-up for C++. If it's not already the case, add a simple C++ Actor in Unreal that you could remove later.
  2. Add the ThirdParty folder to the UnrealProject.
  3. Edit your project's build file, named YourProjectName.Build.cs in the Source/YourProjectName folder. The changes are based on the Source/ProjectName/ProjectName.Build.cs file.
    1. Add the using System.IO;
    2. Add the two new methods ThirdPartyPath and LoadThirdPartyDLL.
    3. Add the two LoadThirdPartyDLL at the end of the constructor.
  4. Add the source files in the Source/ProjectName/Private and Source/ProjectName/Public folders to your respective Source/YourProjectName/Private and Source/YourProjectName/Public folders.
  5. In these files, replace all occurences of ProjectName by YourProjectName and PROJECTNAME_API by YOURPROJECTNAME_API.
  6. Finally, add the mosquitto.dll and mosquittopp.dll in the Binaries/Win64 folder. You can find these two DLLs in the ThirdParty subfolders, but you will have to to remove .x64 from their pathname.
  7. Right-click on YourProject.uproject file, and select Generate Visual Studio Project files.
  8. Open YourProject.sln and compile everything.
  9. (Re)Start the Unreal Engine Editor.

How to use

To use the MQTT client, the simplest method is to create a blueprint child class from it.

  1. Find the C++ Unreal Mosquitto class in the content browser.
  2. Right click and select Create Blueprint class based on UnrealMosquitto.

This new child class has access to the events in its event graph. You can also configure the client in the MQTT section in the details panel of the root element. The router can dispatch executions flows based on MQTT topics.

unrealmosquitto's People

Contributors

fungiboletus avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

unrealmosquitto's Issues

error c3668

I try compile, but receive this error message:

C:\testes\UnrealMosquitto\uemqtt_packeged\HostProject\Plugins\UEmqtt\Source\UEmqtt\Public/UnrealMosquittoRouter.h(37): error C3668: 'UUnrealMosquittoRouter::GetPinNameGivenIndex': method with override specifier 'override' did not override any base class methods
C:\testes\UnrealMosquitto\uemqtt_packeged\HostProject\Plugins\UEmqtt\Source\UEmqtt\Public\UnrealMosquittoRouter.h(37): error C3668: 'UUnrealMosquittoRouter::GetPinNameGivenIndex': method with override specifier 'override' did not override any base class methods
C:\testes\UnrealMosquitto\uemqtt_packeged\HostProject\Plugins\UEmqtt\Source\UEmqtt\Private\UnrealMosquittoRouter.cpp(162): error C2664: 'int32 TArray<FString,FDefaultAllocator>::Remove(const FString &)': cannot convert argument n from 'FName' to 'const FString &'
C:\testes\UnrealMosquitto\uemqtt_packeged\HostProject\Plugins\UEmqtt\Source\UEmqtt\Public\UnrealMosquittoRouter.cpp(4): error C2084: function 'FString UUnrealMosquittoRouter::GetPinNameGivenIndex(int32)' already has a body

I already tried both the normal compilation as the routine as plugin, and it gives the same error.

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.