mirror of
https://github.com/alexandrebobkov/ESP-Nodes.git
synced 2024-10-05 20:47:50 -04:00
internal temperature device
This commit is contained in:
parent
45d904d2b3
commit
9d33883327
@ -247,7 +247,11 @@ void app_main()
|
|||||||
temp_sensor_device = esp_rmaker_temp_sensor_device_create("Server Temp", NULL, app_get_current_temperature());
|
temp_sensor_device = esp_rmaker_temp_sensor_device_create("Server Temp", NULL, app_get_current_temperature());
|
||||||
esp_rmaker_node_add_device(node, temp_sensor_device);
|
esp_rmaker_node_add_device(node, temp_sensor_device);
|
||||||
|
|
||||||
/* CREATE AMBIENT LIGHT SENSOR DEVICE*/
|
/* CREATE AMBIENT LIGHT SENSOR DEVICE */
|
||||||
|
|
||||||
|
/* CREATE INTERNAL TEMPERATURE DEVICE */
|
||||||
|
chip_sensor_device = esp_rmaker_temp_sensor_device_create("Chip Temperature", NULL, app_get_internal_temperature());
|
||||||
|
esp_rmaker_node_add_device(node, chip_sensor_device);
|
||||||
|
|
||||||
/* Enable OTA */
|
/* Enable OTA */
|
||||||
esp_rmaker_ota_enable_default();
|
esp_rmaker_ota_enable_default();
|
||||||
|
@ -18,6 +18,7 @@ extern esp_rmaker_device_t *switch_device;
|
|||||||
// Define RainMaker device: temperature gauge
|
// Define RainMaker device: temperature gauge
|
||||||
extern esp_rmaker_device_t *light_gauge_device;
|
extern esp_rmaker_device_t *light_gauge_device;
|
||||||
extern esp_rmaker_device_t *temp_sensor_device;
|
extern esp_rmaker_device_t *temp_sensor_device;
|
||||||
|
extern esp_rmaker_device_t *chip_sensor_device; // internal temperature sensor
|
||||||
|
|
||||||
void app_driver_init(void);
|
void app_driver_init(void);
|
||||||
void app_sensor_init(void);
|
void app_sensor_init(void);
|
||||||
|
Loading…
Reference in New Issue
Block a user