Question regarding performing multiple functions with a bluetooth device

im thinking of making an app that sends two separate bytevalues to the app. like- lets say im using an nrf52840 sense and i want to use its thermosensor AND its microphone at the same time and want to receive both information from the arduino and store it in google drive. im familiar with storing files on google drive now but is it possiible? to save audio recording taken from the nrf? i was thinking of using multiple uuids but bluetoothle has only one charuuid input

like this
and i think if i put the other uuid like audiouuid in charuuid for registering bytes AND a different one for detecting stuff on thermosensor, it would not work. how does one overcome multiple functions being performed by bluetooth module?

That's why the event block gives you the incoming uuids in addition to the byte values.

So you can test them message by message.

Forget that global flag test.

...i dont understand or maybe im not sure if you understood my question kinda?
i have two uuids for two different performing functions right



would this work if i put register for bytes twice like that with two different charuuids? or what is the workaround if there isnt

It looks reasonable.

Try it.

java.lang.NullPointerException: Attempt to invoke virtual method 'java.util.UUID android.bluetooth.BluetoothGattCharacteristic.getUuid()' on a null object reference at edu.mit.appinventor.ble.BluetoothLEint$BLEOperation.registerPendingOperation(BluetoothLEint.java:257) at edu.mit.appinventor.ble.BluetoothLEint$BLEReadOperation.subscribe(BluetoothLEint.java:356) at edu.mit.appinventor.ble.BluetoothLEint$BLEReadOperation.run(BluetoothLEint.java:325) at android.os.Handler.handleCallback(Handler.java:942) at android.os.Handler.dispatchMessage(Handler.java:99) at android.os.Looper.loopOnce(Looper.java:211) at android.os.Looper.loop(Looper.java:300) at android.app.ActivityThread.main(ActivityThread.java:8348) at java.lang.reflect.Method.invoke(Native Method) at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:582) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1028)
Note: You will not see another error reported for 5 seconds. i am getting this error.




i am making an app that records sound with the help of my nrf52840 sense's microphone. the data is transmitted in small chunks and makes it into bytes to base64 and sends it to mit app that the, joins all of it up, and then sends it to google drive basically.