0 Replies Latest reply on Jul 23, 2015 7:40 AM by theo furber

    rhoelements shared library issue with modules not found log errors

    theo furber

      We're attempting to get a mc9500 with wm6.5 with rhoelements 4.0.0 going.  I installed the shared library and setup the config.xml to hold the license key along with setting the correct default remote start url. The log file reports the license is accepted, but i'm having a problem with calling some of the modules like wake and camera.

       

      here's a snip from the log file

       

      I 07/23/2015 10:27:27:000 8bf7c5d6 Core::CMeta::GetModule| Plug-in: wakecannot be found in Plugin.xml

      W 07/23/2015 10:27:27:000 8bf7c5d6 Core::CMeta::SetPlugProperty| Module wake not found.

       

      here's my snip from the index.html we are trying to test with

       

       

      <html> 

      <head> 

              <!-- required for pre-4.0 JS API -->

              <script type="text/javascript" src="/public/jquery/jquery-1.6.4.min.js"></script>

              <script type="text/javascript" src="/public/jquery/jquery.json-2.3.min.js"></script>

              <!-- pre-4.0 JS API -->

              <script type="text/javascript" src="/public/js/rho_javascript_api.js"></script>

              <!-- compatibility layer -->

              <script type="text/javascript" src="/public/js/rho_common_api_noconflict.js"></script>

              <!-- new Common JS API -->

              <script type="text/javascript" charset="utf-8" src="/public/api/rhoapi-modules.js"></script>

       

       

      <META HTTP-Equiv="KeyState" Content="Left:155; Top:102; Visibility:Visible"> 

      <META HTTP-Equiv="wake" Content="wakeLock:Enabled;wifiLock:Enabled">

        <script type="text/javascript"> 

          function test(){ 

            Rho.Battery.batteryStatus({}, display); 

          } 

       

          function display(batteryValues){ 

            alert("Battery Level is: " + batteryValues['batteryLifePercent']); 

            Rho.Battery.stopBatteryStatus(); //Add this line 

          } 

        </script> 

      </head> 

      </html>

        <div> 

      <br><br>

          <a href="#" onclick="Javascript:test();">battery test</a> 

        </div> 

       

      I do get correct return when i attempt to query for the battery status, but the wake lock and wifi lock have my baffled.

       

      Any ideas?

       

      Am i correct in assuming that the shared library includes javascript access to all of the api? Or must we compile a library because the shared one does not include everything?