Google Glass XE21 Bluetooth LE turns off automatically

I am trying to write a google glass app to read the RSSI value for a StickNFind beacon at regular intervals (800 milliseconds) for which I need to connect to a gatt server. When I try to connect to the gatt server in BluetothLE mode, it disconnects immediately.

When I connect to the gatt server using this:
  mConnectedGatt = btDevice.connectGatt (this is, false, mGattCallback);
I get this in the callback:
  onClientConnectionState () - status = 0 clientIf = 4 device = E1: FC: AF: DB: E3: FC
and then I unwittingly figure it out in the callback:
  onClientConnectionState () - status = 62 clientIf = 4 device = E1: FC: AF: DB: E3: FC

The same code works fine on my link 7. Does anyone know if Google Glass supports enough to connect to the gatt server?

I don't understand status code 62 ... please help

+3


source to share





All Articles