function onInit(){
var data = {a:"1",b:2};
NRF.setAdvertising({},{
showName:false,
manufacturer:0x0590,
manufacturerData:JSON.stringify(data)
});
}
setTimeout(save,1E3);
Advertising is visible on Espruino Hub and BluefruitConnect.
Connect to the mqtt server and subscribe to /ble/advertise/d9:c7:0b:0a:48:20/espruino and /ble/advertise/d9:c7:0b:0a:48:20/#. Get many payloads for the second sub but none for the first.
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.
Use a Puck to advertise data and try to read them via MQTT client, but data is not visible via mqtt client.
Configuration and snipped to advertise taken from the the Espruino Hub repo page
Device: d9:c7:0b:0a:48:20 - Puck.js 4820 (RSSI -59)
snippet on for Puck.js 4820
Advertising is visible on Espruino Hub and BluefruitConnect.
Connect to the mqtt server and subscribe to
/ble/advertise/d9:c7:0b:0a:48:20/espruino
and/ble/advertise/d9:c7:0b:0a:48:20/#
. Get many payloads for the second sub but none for the first.Any hints what's missing?
2 Attachments