So you want to control the Bangle.js app from the phone app? Or the phone app from Bangle.js?
I'm not entirely sure I understand what you're asking - if you want to send commands to an app that's running, I'd say the easiest method would be to create a function in your Bangle.js app, say called MYAPP.
You could then call that function using DroidScript and pass whatever data you want to it - for example by sending 'MYAPP({msg:"Hello",data:"World"})\n'
Espruino is a JavaScript interpreter for low-power Microcontrollers. This site is both a support community for Espruino and a place to share what you are working on.
So you want to control the Bangle.js app from the phone app? Or the phone app from Bangle.js?
I'm not entirely sure I understand what you're asking - if you want to send commands to an app that's running, I'd say the easiest method would be to create a function in your Bangle.js app, say called
MYAPP
.You could then call that function using DroidScript and pass whatever data you want to it - for example by sending
'MYAPP({msg:"Hello",data:"World"})\n'