This forum uses cookies
This forum makes use of cookies to store your login information if you are registered, and your last visit if you are not. Cookies are small text documents stored on your computer; the cookies set by this forum can only be used on this website and pose no security risk. Cookies on this forum also track the specific topics you have read and when you last read them. Please confirm whether you accept or reject these cookies being set.

A cookie will be stored in your browser regardless of choice to prevent you being asked this question again. You will be able to change your cookie settings at any time using the link in the footer.

Custom experiment with MQTT credentials
#1
Hi there,

I am new here. I tried to setup a phyphox experiment to stream sensor data via MQTT. 

I found the example in the wiki, modified it and loaded it into phyphox. It seems to work, but the connection is refused, because i did not enter any credentials.
Our MQTT broker is secured with a password and username, how can I enter that into the xml file?

I tried adding the tags username= and password= in the connection field, but it did not work.

The wiki doesn't say anything about credentials, I also didn't find any examples.

How can this be achieved?
Reply
#2
I have to admit that I did not try this myself, but a colleague from another institution has implemented MQTTS and added the username and password attributes, too. However, so far this has only been done on Android and it is undocumented. If you are on Android, you can try it by setting the service to mqtts/* instead of mqtt/* and use an encrypted connection.
Reply


Forum Jump: