Hi Gordon,
as you suggest, for the 'repeater' we can do this:
NRF.requestDevice({ timeout:1000, filters: [{ name: 'Puck.js abcd' }] }).then(function(device) { // found NRF.setAdvertising({},{manufacturer:0x590,manufacturerData:[1]}); }).catch(function(e) { // not found NRF.setAdvertising({},{manufacturer:0x590,manufacturerData:[0]}); });
And for the endpoint (to check the repeater):
NRF.requestDevice({ timeout:1000, filters: [{ name: 'Puck.js repeater' }] }).then(function(device) { // repeater found var originalDeviceFound = device.manufacturerData[0]; }).catch(function(e) { // repeater not found });
Can we can extend this with several repeaters ? is MDBT42Q with Espruino JavaScript interpreter pre-installed, able to be a repeater or an endpoint ?
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.
Hi Gordon,
as you suggest, for the 'repeater' we can do this:
And for the endpoint (to check the repeater):
Can we can extend this with several repeaters ? is MDBT42Q with Espruino JavaScript interpreter pre-installed, able to be a repeater or an endpoint ?