Skip to content

Cant connect to MQTT server if experiment is loaded via QR Code #57

Description

@aamiel1

Hi,

I create this MXL and load it to the Editor, In the Editor i go to the XLM tab to preview the XML, but I see it without the "" section. I also try to use this experiment in the app, but no MQTT message was sent.

<phyphox version="1.11" locale="en">
  <title>MQTT/JSON</title> 
  <category>Net examples</category>
  <icon>://</icon>
  <description>Test for mqtt/json.</description>
  <data-containers>
    <container size="1">accX</container>
    <container size="1">accY</container>
    <container size="1">accZ</container>
  </data-containers>
  <network>
    <connection address="1.1.1.1:1234" autoConnect="true" service="mqtts/json" password="mqttpass" username="mqttusername" sendTopic="phyphox/acc" id="test" privacy="https://phyphox.org/disclaimer/" conversion="json">
        <send id="x" type="buffer" datatype="number">accX</send>
        <send id="y" type="buffer" datatype="number">accY</send>
        <send id="z" type="buffer" datatype="number">accZ</send>
    </connection>
  </network>
  <input>
    <sensor type="accelerometer" rate="10">
      <output component="x">accX</output>
      <output component="y">accY</output>
      <output component="z">accZ</output>
    </sensor>
  </input>
  <views>
    <view label="Test">
      <value label="Accelerometer x" size="2" precision="2" unit="m/s²">
        <input>accX</input>
      </value>
      <value label="Accelerometer y" size="2" precision="2" unit="m/s²">
        <input>accY</input>
      </value>
      <value label="Accelerometer z" size="2" precision="2" unit="m/s²">
        <input>accZ</input>
      </value>
      <button label="Submit">
        <trigger>test</trigger>
      </button>
    </view>
  </views>
</phyphox>

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions