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
@ -249,6 +249,10 @@ void app_main()
|
||||
|
||||
/* 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();
|
||||
//esp_rmaker_ota_enable(&)
|
||||
|
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user