ESP32具有片上温度传感器,该传感器不能用于监控外部温度,用于监控其核心温度。在本教程中,我们将监控片上温度传感器数据。 更新:大多数 ESP32 上的温度传感器已不可用了。 代码 #ifdef __cplusplus extern "C" { #endif uint8_t temprature_sens_read(); #ifdef __cplusplus } #endif uint8_t temprat