mirror of https://github.com/espruino/BangleApps
ha: add lib.sendValue()
parent
bcffdef85b
commit
a610833bd7
|
@ -78,3 +78,13 @@ exports.sendTrigger = function(triggerName){
|
|||
}
|
||||
}
|
||||
}
|
||||
|
||||
exports.sendValue = function(trigger, value){
|
||||
Bluetooth.println(
|
||||
JSON.stringify({
|
||||
t: "intent",
|
||||
action: "com.espruino.gadgetbridge.banglejs.HA",
|
||||
extra: { trigger, value },
|
||||
})
|
||||
);
|
||||
};
|
||||
|
|
Loading…
Reference in New Issue