Closed webmaster-imaginet closed 8 years ago
please try if the current master is acceptable. Could not really reduce it more due to technically restrictions
I used version 1.1.2 (cordova plugin add cordova-plugin-hotspot) I also try version 1.1.1 (cordova plugin add cordova-plugin-hotspot!1.1.1) but got the same "slow" results.
now I try to use the git "master" as you asked (cordova plugin add https://github.com/hypery2k/cordova-hotspot-plugin.git) but got empty array
Should be better with 1.1.3
Much faster...
But why reading the arp file is not working super fast?
Is it will be faster to read the file and send as callBack the result "AS IS" and then do the divide to IP & MAC in the javascript? If the answer is yes, maybe is good idea to add a new methood for that?
the ARP my not contain all devices. But I optimize the method more
Good! This is still ver 1.1.3 (from the NPM) or will be 1.1.4?
will be 1.1.4 But I'll wait if any other issue comes up before releasing next version
Released version 1.1.4
I have performance issues with getHotspotDevices
To show this, I change a little bit your sample app controller.
Here is the code:
.controller('DevicesCtrl', function ($scope, $interval) { "use strict"; var init = function () {
it took 108 second to get the devices list
I filmed a video to show you the problems. https://www.dropbox.com/s/msofovh7w58u7ft/hotspot_plugin_slow.mp4?dl=0