eelcocramer / node-bluetooth-serial-port

Serial I/O over bluetooth for NodeJS
Other
498 stars 140 forks source link

Sample App #56

Closed normanb closed 9 years ago

normanb commented 9 years ago

Hi,

I have tried the sample app with the Android Bluetooth Chat Sample - https://android.googlesource.com/platform/development/+/eclair-passion-release/samples/BluetoothChat/src/com/example/android/BluetoothChat/BluetoothChatService.java

It says it has connected and the data is sent, but it never shows up.

Is there an example of a the library connecting to a server?

Thanks.

eelcocramer commented 9 years ago

Sorry but I don't really understand your issue.

The node-bluetooth-serial-port library connect to a Bluetooth RFCOMM service on a remote device and enables you to send and receive data from that connection.

Is the Bluetooth Chat Sample you mention a RFCOMM service running on an Android device?

You say that "it says it has connected and the data is sent" but what do you mean by "it"?

There is a sample script in the experiments folder of this project: https://github.com/eelcocramer/node-bluetooth-serial-port/blob/master/experiments/scan-test.js

Does this help you?

normanb commented 9 years ago

'It' is the sample in the README.

The Bluetooth Chat Sample is a RFCOMM service running on Android.

I have also tried the sample.

How have you tested that this library connects and writes?

eelcocramer commented 9 years ago

I use the module to connect and control Arduino's.

So you can see that data was send? Do you see anything in logcat?

Maybe issue #19 can point you in the right direction?

eelcocramer commented 9 years ago

Closing this for now.