Hi @Gordon, I tested the following on a Pixl running released 2v01 code. It ceases to advertise. When set to true for connectable, it works fine. It is reproducible.
Help? Bill
//
// OSF Between Two Knees lighting effect translator
//
var count = 0; // for testing
var i = 0;
// port definitions
const DMX_length = 18;
const DMX_channel = 0x05;
var DMX_data = new Uint8Array(DMX_length); // array to store DMX data received
for (i = 0; i < DMX_data.length; i++)
{
DMX_data[i] = 0;
}
//
// Initialize; set up
//
NRF.setTxPower(4); // +4 dBM (maximum)
NRF.setAdvertising({},{
name: "PTG",
interval: 30,
connectable: false, // change to false before deployment
manufacturer: 0x0583, // Code Blue Communications
manufacturerData:[DMX_data]
});
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, I tested the following on a Pixl running released 2v01 code. It ceases to advertise. When set to true for connectable, it works fine. It is reproducible.
Help? Bill