Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 13 Next capture
2021 2022 2023
1 capture
13 Jun 22 - 13 Jun 22
sparklines
Close Help
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
  • Asset Store
  • Get Unity

UNITY ACCOUNT

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account
  • Blog
  • Forums
  • Answers
  • Evangelists
  • User Groups
  • Beta Program
  • Advisory Panel

Navigation

  • Home
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
    • Blog
    • Forums
    • Answers
    • Evangelists
    • User Groups
    • Beta Program
    • Advisory Panel

Unity account

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account

Language

  • Chinese
  • Spanish
  • Japanese
  • Korean
  • Portuguese
  • Ask a question
  • Spaces
    • Default
    • Help Room
    • META
    • Moderators
    • Topics
    • Questions
    • Users
    • Badges
  • Home /
avatar image
0
Question by xKingGx · Sep 04, 2020 at 03:58 PM · librarygithublibraries

Implement M2MQTT for Unity

I started working with Unity. For this project, I need an MQTT connection. So I wanted to add M2MQTT for Unity. When opening an included test scene everything works fine, also writing new scripts. But when trying to implement the library to Unity for a blanked new project it fails. Every time new errors and I can't even build it. In the link below you'll find the library I want to use. Can you PLEASE help with including this library to Unity? I can't find help via Google...

https://github.com/gpvigano/M2MqttUnity

Comment
Add comment
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

2 Replies

· Add your reply
  • Sort: 
avatar image
0
Best Answer

Answer by CodesCove · Sep 04, 2020 at 11:44 PM

Make sure you copy both the M2Mqtt and M2MqttUnity/Scripts folders to you projects Asset folder.

To prevent namespace errors add text "SSL" to the Project Settings --> Player --> Other Settings --> Scripting Define Symbols. This is because the some of the scripts use this for #if directives

Also check that your API compatibility level is set to .NET 4.x.

Comment
Add comment · Show 3 · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image xKingGx · Sep 05, 2020 at 07:58 AM 0
Share

THANK YOU SO $$anonymous$$UCH! Everything works now. Without your help I would never have thought of it.

avatar image CodesCove xKingGx · Sep 09, 2020 at 08:36 PM 0
Share

I'm glad I could help!

avatar image xKingGx · Sep 17, 2020 at 07:43 AM 0
Share

Hi, may I ask you another question? I’m trying to fix it since a few days and don’t get it. I asked you one comment below for helping me with $$anonymous$$QTT in VR - do you have any idea? Thank you for helping!

avatar image
0

Answer by xKingGx · Sep 11, 2020 at 07:22 PM

@CodesCove Could I ask you another question to M2MQTT?

Everything works well but when trying to configure it on my Oculus Quest (Android) it doesn't work with SSL. (After clicking on "Android" - "Switch platform" I saw, that there're some Android and VR explanations in this readme but I don't get how to set it up.

Could you please help me another time? Sorry for asking again, but your last tipp was optimal.

Comment
Add comment · Show 1 · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image CodesCove · Sep 21, 2020 at 10:02 PM 0
Share

Hi, Didn't notice your another question so took a while to answer. Anyway if the problem still exists then here are some directions:

Switching platform will reset at least some of the player settings So check again that you have SSL defined. In addition check Project Settings --> Player --> XR Settings check the Virtual Reality supported and press + and select Oculus. The sdk will be installed automatically. At least the errors should disappear.

Your answer

Hint: You can notify a user about this post by typing @username

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Follow this Question

Answers Answers and Comments

135 People are following this question.

avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image

Related Questions

There is a way to import an ODE solver library and use it? 0 Answers

Visual Studio - Missing "GameAssembly.lib" 1 Answer

how can i know about the libraries of c# in unity 1 Answer

Problem iOS compile -library not found? 0 Answers

Integrating IronPdf crashes unity 1 Answer


Enterprise
Social Q&A

Social
Subscribe on YouTube social-youtube Follow on LinkedIn social-linkedin Follow on Twitter social-twitter Follow on Facebook social-facebook Follow on Instagram social-instagram

Footer

  • Purchase
    • Products
    • Subscription
    • Asset Store
    • Unity Gear
    • Resellers
  • Education
    • Students
    • Educators
    • Certification
    • Learn
    • Center of Excellence
  • Download
    • Unity
    • Beta Program
  • Unity Labs
    • Labs
    • Publications
  • Resources
    • Learn platform
    • Community
    • Documentation
    • Unity QA
    • FAQ
    • Services Status
    • Connect
  • About Unity
    • About Us
    • Blog
    • Events
    • Careers
    • Contact
    • Press
    • Partners
    • Affiliates
    • Security
Copyright © 2020 Unity Technologies
  • Legal
  • Privacy Policy
  • Cookies
  • Do Not Sell My Personal Information
  • Cookies Settings
"Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • Default
  • Help Room
  • META
  • Moderators
  • Explore
  • Topics
  • Questions
  • Users
  • Badges