Qt Forum

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Unsolved

    Qt Academy Launch in California!

    Emergent_ How to connect the WiFi (Direct) point by QTcpServe?

    Mobile and Embedded
    1
    1
    909
    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.
    • M
      mkdh last edited by

      I have a wi-fi flash drive. It looks like usb.

      I can use wifi (from MAC or iPad Air) to connect to the usb and upload file by its Mobile App(only try iPad Air).

      The file will be save in the sd Card. Hence, I must insert the micro SD card before use.

      The Internet is not working when using its wifi function.But my phone can connect to the usb drive.

      I want to write a code to connect to its wifi point. How to do ?

      I try QTcpSocket but it is not working.(Only using Client part).

      my code :
      @
      blockSize = 0;
      tcpSocket->abort();
      tcpSocket->connectToHost(ui->hostLineEdit->text(),
      ui->portLineEdit->text().toInt());
      @
      What is the ui->hostLineEdit->text() and ui->portLineEdit->text().toInt() ?

      It will show "192.168.100.108.ntp " when i type "natstat" in terminal in my macbook pro.

      I am not sure if the WiFi is WiFi-Direct point.

      The firm tell me that your phone can connect to the usb drive when your phone have wifi....

      B2Qt Wifi Module, Bearer Management , QTcpSocket and QUdpSocket....

      Which function should I use to connect to the usb drive?

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