No problem, I was trying to avoid writing code because I'd have to look it up too :)
NRF.requestDevice({ filters: [{ name: DevName }] }).then(function(device) { return device.gatt.connect(); }).then(function(g) { gatt = g; console.log(gatt); return new Promise(function(resolve) { setTimeout(resolve, 1000); }); }).then(function() { return gatt.getPrimaryService(serviceUUID); }).then(function(service) {
@Gordon started
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.
No problem, I was trying to avoid writing code because I'd have to look it up too :)