• Hi

    I'm testing the ADV_IND associated to a sensing service definition as follow

    NRF.setServices({
    	// Configuring the Envrionmental Sensing Service
    	0x181A: {
    		// Configure Temperature Characteristics
    		0x2A6E: {
    			readable: true,
    			notify: true,
    			writeable: false,
    		}
    	}
    });
    NRF.setAdvertising(
       [
    	{0x181A : [Puck.light()]}], 
       {interval:500}
    );
    

    I've controlled that the service is well defined into the GATT
    I receive ADV_IND perdiodically as expected

    My problem is that the Service Data value does not change at all. Egal to 0 !!
    I've check several things

    The Puck.light() is Ok as the following code works fine

    setInterval(function() {
      print (Puck.light());
    }, 500);
    

    I've tried to replace the Puck.light() by

    - new Float32Array([Puck.light() * 100]).buffer or
     - new Int16Array([E.getTemperature() * 100]).buffer
    

    The value is not = 0 but does not change neither ..

    Any idea ?
    Other option to get this sensing value ?

About

Avatar for user94148 @user94148 started