So I have found out my bug. Why WIFIlock did not work as expected. I have put wrong number. So The right lines are:

  WifiManager := ANWWifiManager(getSystemService(ACContext.WIFI_SERVICE));
WifiManager.createWifiLock (3,'WIFI_MODE_FULL');
Wakelock number is correct.


_______________________________________________
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

Reply via email to