Hi all

I am feteching mac address it is coming right on pc but when i run it on devices it is not correct address.
I am using this code

Qt Code:
  1. bool result = false;
  2. for (int i = 0; i < ifaces.count(); i++)
  3. {
  4. QNetworkInterface iface = ifaces.at(i);
  5. if ( iface.flags().testFlag(QNetworkInterface::IsUp) && !iface.flags().testFlag(QNetworkInterface::IsLoopBack) )
  6. {
  7. qDebug() << "name:" << iface.name() << endl << "ip addresses:" << endl<< "mac:" << iface.hardwareAddress() << endl;
  8. for (int j=0; j<iface.addressEntries().count(); j++)
  9. {
  10. qDebug() << iface.addressEntries().at(j).ip().toString()<< " / " << iface.addressEntries().at(j).netmask().toString() << endl;
  11. if (result == false)
  12. result = true;
  13. }
  14. }
  15. }
To copy to clipboard, switch view to plain text mode 
Like if devices's mac address is "74:45:8A:5D:15:B9" and "00:19:07:43:c6:55" then it is coming "01:00:74:45:8A:5D" and "01:00:00:19:07:43" respectively. Thank You.