What would be the best way to advertise manufacturer data and Eddystone at the same time? I can't figure how to do something like this (obviously not working):
var bUrl = "stackoverflow.com"; // Updated from Node-Red
function updateAdv() {
var data = [JSON.stringify(Puck.light().toFixed(3) * 1000), Math.round(E.getTemperature())];
console.log(data);
NRF.setAdvertising([
{manufacturer: 0x0590, manufacturerData:data},
require("ble_eddystone").advertise(bUrl)
], {interval:1000});
}
updateAdv();
setInterval(updateAdv, 5000);
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.
What would be the best way to advertise manufacturer data and Eddystone at the same time? I can't figure how to do something like this (obviously not working):
Thanks.