How do I read bluetooth data with the Cordova plugin ?

Get help using Construct 2

Post » Thu Nov 17, 2016 3:30 am

I'm using the cranberrygame Cordova plugin for Bluetooth Serial functionality, and I'm having trouble reading any data from my bluetooth module to my Android phone.

Elements:
Construct 2
Phonegap for building
Cordova Bluetooth Serial c2addon 1.0.16
Arduino with bluetooth module.

I have used a bluetooth terminal app on my phone and it gets the data so I don't think it has to do with my Arduino. I can connect to my bluetooth device just fine in the Construct app, but I'm just getting an empty string from my read.

My logic, if it helps:
Image
B
8
S
2
Posts: 3
Reputation: 506

Post » Mon Nov 28, 2016 3:48 pm

I finally figured it out. I put the read node on every tick. See my logic below.

Image
B
8
S
2
Posts: 3
Reputation: 506

Post » Thu Jan 04, 2018 10:29 am

Hi! can you send a link to this plug in?
B
4
S
1
Posts: 2
Reputation: 304

Post » Sun Jan 07, 2018 10:11 pm

It's included in this package: http://cranberrygame.github.io/request_ ... a_plugins/

The Bluetooth Serial one.
B
8
S
2
Posts: 3
Reputation: 506


Return to How do I....?

Who is online

Users browsing this forum: No registered users and 4 guests