0 Replies Latest reply on Oct 19, 2011 1:15 PM by Nischal Vasant

    Card swipe via bluetooth COM port

      Hello,

       

      I was having trouble with getting the RhoElements to detect a card swipe on a O'Neil 4Te bluetooth printer/card reader. I am able to print to it fine using writeString and writeBytes, but it does not seem to be detecting a "commEvent" when I swipe a card. I tried setting values of time, endChar and chars, but none worked.

       

      Is anybody else having this issue?

       

      function CommSetup()
      {
          comm.time = '200';
          comm.commEvent = 'DisplayData(%json)';
          comm.port = 'COM9';
          comm.open();
          
          comm.writeString = 'Hello World!';
          comm.writeBytes = '%0d %0a';
          comm.writeBytes = '%0d %0a';
          comm.writeBytes = '%0d %0a';
          
      }
      
      function DisplayData(jsonObject)
      {
                  alert(jsonObject.data);
      }