• Hi @Gordon, I assure you I'm disconnected from the IDE. Here's a portion of the code (setup), since there's a bit more involved. If you know DMX lighting protocols, this is advertising code for DMX over Bluetooth. I've tested this with the last line commented out (turn off connectability), and there is no advertising. I've also tried changing the 'connectability' parameter in the initial setAdvertising with the same results: once I turn off conductibility, the device ceases to advertise.
    /

    /
    //  OSF Between Two Knees lighting effect translator
    //
    
    var count = 0;  // for testing
    var i = 0;
    
    // port definitions
    
    const SCL = D26;
    const SDA = D25;
    const data_ready = D7;
    const DMX_length = 18;
    const DMX_channel = 0x05;
    
    // setup I2C
    I2C1.setup({ scl : SCL, sda: SDA });
    
    // change to "input" for direct CPU connection from "input_pulldown"
    pinMode(data_ready, "input");  // for switch for testing
    
    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: true,      // change to false before deployment
      manufacturer: 0x0583,    // Code Blue Communications
      manufacturerData:[DMX_data]
    });
    
    NRF.setAdvertising({}, { connectable:false });
    
About

Avatar for billsalt @billsalt started