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: 2
Reputation: 504

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: 2
Reputation: 504


Return to How do I....?

Who is online

Users browsing this forum: Lancifer and 23 guests