• Register
    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular

    How to build a new gateway adapter to accept REST request?

    Developers Zone
    2
    5
    179
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • X
      xuch74 last edited by

      I have built some adapter like mqtt type, or REST client type. But now i meet a need to build a new gateway adapter to accept REST request from external app... I want to accept some watch like a mycontroller device, but the vendor only supply one way to supply the data, they need me to provide a https/http url, and they will provide the watch data through the url....

      jkandasa 1 Reply Last reply Reply Quote 0
      • jkandasa
        jkandasa @xuch74 last edited by

        @xuch74 build adapter to get data from REST API and post it to MQTT.

        1 Reply Last reply Reply Quote 0
        • X
          xuch74 last edited by

          just to build a REST server to accept the request from the external app?

          X 1 Reply Last reply Reply Quote 0
          • X
            xuch74 @xuch74 last edited by

            @xuch74 said in How to build a new gateway adapter to accept REST request?:

            just to build a REST server to accept the request from the external app?

            And the app has to use the username and pass word of the myController?

            jkandasa 1 Reply Last reply Reply Quote 0
            • jkandasa
              jkandasa @xuch74 last edited by

              @xuch74 you have to create your own REST API server, that server should act as a REST-MQTT adapter.
              On MyController create a mycontroller device type gateway with mqtt and add topic details from your adapter.

              1 Reply Last reply Reply Quote 0
              • First post
                Last post

              0
              Online

              647
              Users

              506
              Topics

              3.3k
              Posts

              Copyright © 2015-2023 MyController.org | Contributors | Localization