0
Answered

Compile errors on MQTT interface

MarkH 3 months ago in General Questions updated 2 months ago 7

I wanted to do a fresh install of all the components:

- Unity Hub 3.9.1

- Unity 2022.3.49f1

- Realvirtual-Professional-2022.18

Up to this point everything is working fine.

I copy these folders into the assets directory

Image 1218

After adding REALVIRTUAL_BESTHTTP3 to the scripting define symbols I get compile errors:

Image 1220

After adding REALVIRTUAL_BESTMQTT3 to the scripting define symbols I get additional compile errors:

Image 1221

What did I do wrong and how can I fix it?

Under review

What version of BestHTTP are you using?  I am wondering why you copied the BestHTTP into your Assets Directory - you just need to reference it via the package manger?

I obtained the Best MQTT Bundle with a download link from realvirtual, because realvirtual purchased a license
for me on the Unity Asset Store. I expect that I am using V3 because the link is from 2024.
With those files I was not able to reference it via the package manager, I only have the 3 directories and no unity package file.

Ah ok. I would need the full project for checking what is going wrong in your setup.

Please upload to https://realvirtual.io/send

Please check that the TwinCATHMI Asembly Definitions are like that - or, if you don't need, delete fully TwinCATHMIin your project.

Image 1224


Please also try to close Unity, delete the Library folder out of the project and restart the project. Based on this it works on my machine. 

I still have the compile errors and I traced it to:

Image 1225

I have to add the assembly definition references, but those are not know within the environment. com.tivadar.best.http and com.tivadar.best.mqtt are copied in the assets folder.

I found the problem. My besthttp files are absent, the zip file only contained folders.