3 Replies Latest reply on Nov 3, 2013 6:08 PM by Venkatasubbaiah Chenna

    wlan module of asl.js

    HAO-FAN MA

      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

        • Re: wlan module of asl.js
          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.

          • Re: wlan module of asl.js
            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