IPhone temperature sensor

My question is very similar to this: iPhone proximity sensor . There is clearly some kind of thermometer in the iPhone that reads the OS. Has anyone discovered a top-secret undocumented API to read this sensor?

+6
api iphone sensor
source share
4 answers

I doubt that this sensor is designed for ambient temperature - rather, I'm a suspect , it is designed to overheat the circuits. If that’s all you need, then it’s great, but then again, I think it would be useless for the ambient temperature.

just my opinion.

+4
source share

All I could find was CTGetTemperature in CoreTelephony of all places.

+3
source share

I do not know about previous models, but my iPhone4 goes from cool to very warm in a matter of minutes depending on various radio applications. Therefore, if “good enough” = “within 20 degrees F or so,” then it’s probably not suitable for measuring the environment.

If (perhaps you meant it), you can also track the use of the radio and subtract the temperature variable depending on the use of the radio. uv difficult. It’s easier to just request NWS.

+2
source share

to get all top-secret temperature-related names in the CoreTelephony infrastructure

nm "/Applications/Xcode463.app/Contents/Developer/Platforms/iPhoneOS.platform/DeviceSupport/6.1 (10B141) /Symbols/System/Library/Frameworks/CoreTelephony.framework/CoreTelephony" | grep empera

+1
source share

All Articles