-
• #2
To do that, you could potentially use Eddystone: http://www.espruino.com/Puck.js+Eddystone
Or if not, you would need to make an app for your phone. If you haven't done anything like that before then you could look at DroidScript - it might be a good way to get started
-
• #3
Hi Gordon,
I have gone through the links.
- Regarding espruino.com/Puck.js+Eddystone it seems that we need to
install another app to achieve this and I don't want to install new app. - DroidScript seems good option but I don’t know how to send data on
Puck button click and receive that data at app side. Any link or
guide for achieving this.
Thanks
- Regarding espruino.com/Puck.js+Eddystone it seems that we need to
-
• #4
You don't need an app to get eddystone working - any Android device from the last few years with Chrome on it should work (it's possible you have to change one setting in Android, but i'm not sure)
-
• #5
There is a free plugin for DroidScript and Puck.js
-
• #6
If we can print from Puck button on espruino ide screen then definitely there will be some way to print on android app screen
-
• #8
Just use this code on DroidScript (make sure you install the Puck.js plugin on DroidScript first)
app.LoadPlugin( "PuckJS" ); function OnStart() { lay = app.CreateLayout( "Linear", "VCenter,FillXY" ); txt = app.CreateText( "Press your puck" ); lay.AddChild( txt ); app.AddLayout( lay ); puck = app.CreatePuckJS(); puck.SetOnConnect( OnConnect ); puck.SetOnButton( OnButton ); puck.Scan( "Puck" ); } function OnConnect() { puck.WatchButton( true ); } function OnButton( state ) { txt.SetText( "Hello World" ); }
Hi, I want to send text "Hello World" when user click Puck button and want to display "Hello World" message on my android phone screen.