You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi, I'm trying to send a message inmediately after the device is connected, but keeps throwing this error:
java.lang.NullPointerException: Attempt to invoke virtual method 'java.io.OutputStream me.aflak.bluetooth.Bluetooth$ReceiveThread.getOutputStream()' on a null object reference
I'm sending it on DeviceCallback using onDeviceConnected function
override fun onDeviceConnected(device: BluetoothDevice) {
statusMessage?.text = getString(R.string.connected)
bluetooth?.send("3")
}
I need to sent the value inmediately after connection to start to read sensors from an arduino
The text was updated successfully, but these errors were encountered:
Hi, I'm trying to send a message inmediately after the device is connected, but keeps throwing this error:
java.lang.NullPointerException: Attempt to invoke virtual method 'java.io.OutputStream me.aflak.bluetooth.Bluetooth$ReceiveThread.getOutputStream()' on a null object reference
I'm sending it on DeviceCallback using onDeviceConnected function
override fun onDeviceConnected(device: BluetoothDevice) {
statusMessage?.text = getString(R.string.connected)
bluetooth?.send("3")
}
I need to sent the value inmediately after connection to start to read sensors from an arduino
The text was updated successfully, but these errors were encountered: