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. Emergent_ How to connect the WiFi (Direct) point by QTcpServe?
Qt 6.11 is out! See what's new in the release blog

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

Scheduled Pinned Locked Moved Mobile and Embedded
1 Posts 1 Posters 1.1k 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
    mkdh
    wrote on last edited by
    #1

    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
    0

    • Login

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