wlan module of asl.js

// Expert user has replied.
H Hao-Fan Ma 3 years 4 months ago
0 2 0

Dear All,
 
I noticed that there has wlan function in asl.js as below, I would like to know how to use this function? Where can I find the documents for these?
 
var obj = {
        enableAdapter: function() {
            _wlan.enableAdapter();
        },
        disableAdapter: function() {
            _wlan.disableAdapter();
        },
        resetToDefault: function() {
            _wlan.resetToDefault();
        },
        deleteProfile: function() {
            _wlan.deleteProfile();
        },
        getAdapterPowerState: function() {
            _wlan.getAdapterPowerState();
        },
        networkLogin: function() {
            _wlan.networkLogin();
        },
        networkLogout: function() {
            _wlan.networkLogout();
        },
        cancelNetworkLogin: function() {
            _wlan.cancelNetworkLogin();
        },
        addProfile: function() {
            _wlan.addProfile();
        },
        connectProfile: function() {
            _wlan.connectProfile();
        },
        importConfig: function() {
            _wlan.importConfig();
        },
       getAllProfiles: function(){
            _wlan.getAllProfiles();    
        },
       getCurrentProfile: function(){
            _wlan.getCurrentProfile();    
       },
       getConnectionState: function(){
            _wlan.getConnectionState();    
       },
       setEMML:function(emml){
            generic.InvokeMETAFunction('wlan', emml);
       }
};
 
Many Thanks!
Max

Please Register or Login to post a reply

2 Replies

V Venkatasubbaiah Chenna

You can add this code to get the IP address

// add this line in onload method
signal.signalEvent = 'signalStatus(%json)';

  function signalStatus(json) {

            // Retrieve the ip of the terminal                           
           var ipaddress = json.ipAddress;

            // Retrieve the mac of the terminal
            var mac = json.macAddress;

            //  Retrieve the type of terminal
            var model = generic.OEMInfo;

            //  Retrieve the UUID of the terminal
            var uuid = generic.UUID;
}

thanks
Chenna

E Euan Torano

I too would like some information on this. Or a link to some API documentation regarding the core APIs. I need to find a way to get the device's IP address and I'm assuming the wlan module will provide that functionality.

CONTACT
Can’t find what you’re looking for?