Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Mobile and Embedded
  4. UDP server in QML/JS only
Forum Updated to NodeBB v4.3 + New Features

UDP server in QML/JS only

Scheduled Pinned Locked Moved Unsolved Mobile and Embedded
6 Posts 2 Posters 934 Views 1 Watching
  • 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.
  • M Offline
    M Offline
    Mark81
    wrote on 11 Nov 2018, 12:57 last edited by
    #1

    I'm using a commercial device that allows only QML scripts to be loaded. I have no way to write a Qt/C++ back-end application.
    Hence, I wonder if there's a way to create an UDP server in QML/JavaScript only.

    1 Reply Last reply
    0
    • D Offline
      D Offline
      dheerendra
      Qt Champions 2022
      wrote on 12 Nov 2018, 05:49 last edited by
      #2

      Looks like this is not possible. WebSocket is one option but it uses the TCP. You better ask the your provider add UDP related classes in the package and expose them to QML side.

      Dheerendra
      @Community Service
      Certified Qt Specialist
      http://www.pthinks.com

      1 Reply Last reply
      1
      • M Offline
        M Offline
        Mark81
        wrote on 12 Nov 2018, 07:35 last edited by
        #3

        I can live with TCP as well. But As far as I know WebSocket are available only since Qt5.3 while I'm stuck with Qt4.7.1 and QtQuick 1.1. The manufacturer doesn't offer any support about customizing this product. I would like to setup a cross-compiler toolchain and rebuild Qt5 but I have no time to do that.

        1 Reply Last reply
        0
        • D Offline
          D Offline
          dheerendra
          Qt Champions 2022
          wrote on 13 Nov 2018, 13:00 last edited by
          #4

          You don't have to customise the product. Can you write QML Application or not ? Does your project has main.cpp or not ? Will you be able to add the C++ class to your project or not ? Please confirm this.

          Dheerendra
          @Community Service
          Certified Qt Specialist
          http://www.pthinks.com

          M 1 Reply Last reply 13 Nov 2018, 14:31
          0
          • D dheerendra
            13 Nov 2018, 13:00

            You don't have to customise the product. Can you write QML Application or not ? Does your project has main.cpp or not ? Will you be able to add the C++ class to your project or not ? Please confirm this.

            M Offline
            M Offline
            Mark81
            wrote on 13 Nov 2018, 14:31 last edited by
            #5

            @dheerendra I wrote this information in the question.

            There's no main.cpp, and no way to build a C++ application, there are no compilers. I can only place QML files in a specific folder and a closed source application will load them on startup.

            1 Reply Last reply
            0
            • D Offline
              D Offline
              dheerendra
              Qt Champions 2022
              wrote on 13 Nov 2018, 14:34 last edited by
              #6

              hmmm. Then you must customise. You have no other choice.

              Dheerendra
              @Community Service
              Certified Qt Specialist
              http://www.pthinks.com

              1 Reply Last reply
              0

              2/6

              12 Nov 2018, 05:49

              4 unread
              • Login

              • Login or register to search.
              2 out of 6
              • First post
                2/6
                Last post
              0
              • Categories
              • Recent
              • Tags
              • Popular
              • Users
              • Groups
              • Search
              • Get Qt Extensions
              • Unsolved