Page 1 of 1

Reading data from Bluetooth device

Posted: Wed Apr 03, 2024 4:11 pm
by simon.schvartzman
Hi all, is there any way to read the data being sent from a Bluetooth device properly paired to the device where Livecode is running?

Suppose I have a BT device properly paired to my device and I want to read all the data received, can I do that? How?

Many thanks in advance

Regards, Simon

Re: Reading data from Bluetooth device

Posted: Wed Apr 03, 2024 5:15 pm
by dunbarx
There is a function "mergNICisBluetoothConnected()" that determines whether a bluetooth device is connected at all. Beyond that, when you say:
any way to read the data being sent from a Bluetooth device
how do you mean that? Whatever comes over via bluetooth has to end up somewhere, and isn't that the first, best (and only?) place to read from?

Craig

Re: Reading data from Bluetooth device

Posted: Wed Apr 03, 2024 5:59 pm
by simon.schvartzman
Thanks @craig, many thanks for your answer:

Reading the dictionary I understand mergNICisBluetoothConnected() the function returns if BT is connected, nothing else, right?

What I would like to do is the following:

If device is connected put everything the device has sent into a variable.

Is is possible?

Regards, Simon

Re: Reading data from Bluetooth device

Posted: Wed Apr 03, 2024 6:33 pm
by dunbarx
Simon,
nothing else, right?
Seems so.

I am the wrong person to even speak here, since I do not do mobile. But, again, I do not think that bluetooth is the issue. Whatever mobile app you have created must query and read from some dataset in some app on your phone. How that source gets its data via bluetooth I do not know, and do not think it matters. In other words, if you typed some stuff somewhere on your phone you could have your app find it and read it. If you get your stuff via bluetooth from something else, ultimately the same process must proceed.

I think.

Somebody please help this guy...

Craig

Re: Reading data from Bluetooth device

Posted: Wed Apr 03, 2024 6:54 pm
by simon.schvartzman
Thanks @craig, for some reason Livecode does not support BT on Android...so maybe Bluetooth has something to do

Regards,