For those who asked for example code, I pulled it out of the gadgetbridge Java-Code:
// to create an intent for other android-apps to react to:
Bluetooth.println(JSON.stringify({t:"intent",action:"com.sonyericsson.alarm.ALARM_ALERT",extra:{key1:"asdfas"}}));
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.
For those who asked for example code, I pulled it out of the gadgetbridge Java-Code:
// to create an intent for other android-apps to react to:
Bluetooth.println(JSON.stringify({t:"intent",action:"com.sonyericsson.alarm.ALARM_ALERT",extra:{key1:"asdfas"}}));
// to make a http-call:
Bluetooth.println(JSON.stringify({t:"http", url:"https://192.168.1.14/bangletest",xpath:"/html/body/p/div[3]/a"}));