Class BluetoothCtrl


  • public class BluetoothCtrl
    extends java.lang.Object
    This controller is used to get the bluetooth information.
    • Constructor Detail

      • BluetoothCtrl

        public BluetoothCtrl​(android.content.Context context)
        Instantiates a new Bluetooth ctrl.
        Parameters:
        context - the context
    • Method Detail

      • getInstance

        public static BluetoothCtrl getInstance​(android.content.Context context)
        Gets instance.
        Parameters:
        context - the context
        Returns:
        the instance
      • getMacAddress

        public android.os.Bundle getMacAddress()
        Get mac address bundle.
        Returns:
        A bundle contains the error code and message
        int erroeCode = bundle.getInt("errorCode"), (error:1, success=0)
        String errorMsg = bundle.getString("errorMsg");
        String macAddress = bundle.getString("BluetoothMacAddress");