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

UDP server in QML/JS only

Scheduled Pinned Locked Moved Unsolved Mobile and Embedded
6 Posts 2 Posters 928 Views
  • 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 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
    • dheerendraD Offline
      dheerendraD Offline
      dheerendra
      Qt Champions 2022
      wrote on 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 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
        • dheerendraD Offline
          dheerendraD Offline
          dheerendra
          Qt Champions 2022
          wrote on 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
          0
          • dheerendraD dheerendra

            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 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
            • dheerendraD Offline
              dheerendraD Offline
              dheerendra
              Qt Champions 2022
              wrote on 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

              • Login

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