Skip to content

GET/PUT command with MQTT-test-device does not work, 500 response reported #308

Closed Answered by somashekhar-bm
M0hanrajp asked this question in Q&A
Discussion options

You must be logged in to vote

Steps to set up and simulate an MQTT device using EdgeX Foundry:

  1. Generate the docker-compose.yml file (this includes mqtt-broker):

    $ cd compose-builder
    $ make gen ds-mqtt mqtt-broker mqtt-verbose no-secty ui
    $ sudo docker compose up -d
  2. Create a Device Profile in EdgeX UI:

    • Name: "my-custom-device-profile"
    • Manufacturer: "iot"
    • Model: "MQTT-DEVICE"
    • Description: "Test device profile"
    • Labels:
      • "mqtt"
      • "test"
    • Device Resources:
      deviceResources:
        - name: randnum
          isHidden: true
          description: "device random number"
          properties:
            valueType: "Float32"
            readWrite: "R"
        - name: ping
          isHidden: true
          description: "device awake"
          properties:
            valueType: "String"

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by M0hanrajp
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants