Welcome!

Welcome to the official BlackBerry Support Community Forums.

This is your resource to discuss support topics with your peers, and learn from each other.

inside custom component

Native Development

Reply
Super Contributor
lyon819
Posts: 253
Registered: ‎08-19-2010
My Device: BB10, Playbook, 9900, 9800, 9700, 9550, 9530, 9500, 8700.
My Carrier: TT
Accepted Solution

Does BB Z10 STL100-3 have temperature function?

Purpose: Obtain temperature value.

 

Question:

Does BB Z10 STL100-3 have temperature function? If not, just let us know.

 

Action:when I execute sensor_is_supported, dialog shows that the sesor is not supported.

 

Mini code:

if (!sensor_is_supported(SENSOR_TYPE_TEMPERATURE)) {
    snprintf(msg, MSG_SIZE, "SENSOR_TYPE_TEMPERATURE not supported by device!");
    show_dialog_message(msg);
    closeshutdown();
    return EXIT_FAILURE;
}

 

Thanks your attention,

-Fight with BB10
Please use plain text.
BlackBerry Development Advisor (Retired)
psapra
Posts: 74
Registered: ‎07-22-2008
My Device: BlackBerry Z10
My Carrier: N/A

Re: Does BB Z10 STL100-3 have temperature function?

I don't think it's supported.  I am confirming with our sensors team and will update the thread. 

Thanks,
Pratik Sapra
Gaming & Apps Consultant
Developer Relations
@pratiksapra
Please use plain text.
BlackBerry Development Advisor (Retired)
psapra
Posts: 74
Registered: ‎07-22-2008
My Device: BlackBerry Z10
My Carrier: N/A

Re: Does BB Z10 STL100-3 have temperature function?

Can you confirm if you are trying to use this to measure surrounding/room temperature?   As per our sensors team this is not possible.    

Thanks,
Pratik Sapra
Gaming & Apps Consultant
Developer Relations
@pratiksapra
Please use plain text.
BlackBerry Development Advisor (Retired)
aparco
Posts: 15
Registered: ‎10-11-2012
My Device: BlackBerry Z10
My Carrier: Rogers

Re: Does BB Z10 STL100-3 have temperature function?

The Z10 does not support the SENSOR_TYPE_TEMPERATURE.

Please use plain text.
Super Contributor
lyon819
Posts: 253
Registered: ‎08-19-2010
My Device: BB10, Playbook, 9900, 9800, 9700, 9550, 9530, 9500, 8700.
My Carrier: TT

Re: Does BB Z10 STL100-3 have temperature function?

I just try to get all the sensor_type data.

 

Temperature senor should get surrounding temperature information.

Thanks you guys. I got the answer.

 

 

-Fight with BB10
Please use plain text.