Newbie question: TempeSensor ANT+ device type, how do I find out which device to use?

Former Member
Former Member

I am quite new to the field but I want to build an app for the D2 watches in my family. Therefore I need the temperature sensor. Following the tutorials, I saw that I need to find out the device type in the ANT+ download page. Well, I tried, I failed. Where do I find this?
Excuse the stupid question and thanks

  • For watches (except the fr920) you can pair a tempe with the watch and then just access it as a standard sensor in an app - no need to do your own ANT stuff.

    //this enables the tempe and checks to see if one is paired
    		gotTempe=(Sensor.setEnabledSensors([Sensor.SENSOR_TEMPERATURE]).size()>0);
    		Sensor.enableSensorEvents(method(:sensorEvents)); 
    		
    // then you'll see the temperature from the tempe in sensorEvents
    	function sensorEvents(info) {
        	if(info.temperature!=null) {
        		tempTempe=info.temperature;
        	}
    	} 
    	
    // you can also just call Sensor.getInfo() when you want and not use the callback	

  • Former Member
    0 Former Member in reply to jim_m_58

    thank you so much