internal temperature device
Some checks are pending
Deploy Jekyll with GitHub Pages dependencies preinstalled / build (push) Waiting to run
Deploy Jekyll with GitHub Pages dependencies preinstalled / deploy (push) Blocked by required conditions

This commit is contained in:
Alexander 2024-08-13 13:44:01 -04:00
parent 45d904d2b3
commit 9d33883327
2 changed files with 6 additions and 1 deletions

View File

@ -247,7 +247,11 @@ void app_main()
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);
/* 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 */
esp_rmaker_ota_enable_default();

View File

@ -18,6 +18,7 @@ extern esp_rmaker_device_t *switch_device;
// Define RainMaker device: temperature gauge
extern esp_rmaker_device_t *light_gauge_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_sensor_init(void);