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. QSerialPort bytesAvailable() and read() delayed, QextSerialPort works
Forum Updated to NodeBB v4.3 + New Features

QSerialPort bytesAvailable() and read() delayed, QextSerialPort works

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

    Hello,

    this is my source code, I think who is wrong “/mnt/sdcard/data/lock”.

    @

    bool s = true;
    QStringList pathList;
    

    #ifdef ANDROID
    pathList << "/sdcard/data";
    pathList << "/sdcard/data/lock";
    pathList << "/sdcard/data/locks";
    pathList << "/sdcard/data/spool";
    pathList << "/sdcard/data/spool/locks";
    pathList << "/sdcard/data/spool/uucp";
    pathList << "/sdcard/data/tmp";
    pathList << "/sdcard/data/local";
    pathList << "/sdcard/data/local/tmp";
    #endif

    QDir d;
    foreach (const QString s, pathList) {
        d.setPath(s);
        if (!d.exists()){
            if(d.mkpath(d.absolutePath()))
                qCCritical() << "error create directory " << d.absolutePath();
        }
    }
    

    @

    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