I (14060) SPI: Creating SPI mutex

I (14113) INFLUX_BUFFER: SD card mounted successfully

I (14114) INFLUX_BUFFER: /sdcard exists, SD card initialized successfully

I (14117) INFLUX_BUFFER: Read INFLUX_URL from .env file: https://influx.kota-app.com/api/v2/write?bucket=sensorbox&org=kota

W (14131) INFLUX: Initializing Influx client with URL: https://influx.kota-app.com/api/v2/write?bucket=sensorbox&org=kota

I (14155) BME688: Delaying for 10000 microseconds

I (14773) Flicker: Flicker sensor initialized on pin 14

I (14775) temperature_sensor: Range [20°C ~ 100°C], error < 2°C

I (14777) SENSOR_GATHERER: Resumed 2 tasks to gather sensor data

I (14778) SENSOR_GATHERER: Resumed 4 tasks to gather sensor data

W (14781) wifi:I (14779) SEN66: Creating sensor mutex

Haven't to connect to a suitable AP now!

W (14791) AS7341: Reading spectral data from AS7341

I (14794) SEN66: Waking up sensor by setting power GPIO to enabled level...

I (14784) INFLUX_BUFFER: Flushing chunk starting at line 3:

I (14796) DeviceStatus: Active tasks: 26

I (14819) INFLUX: Writing to InfluxDB

I (14824) DeviceStatus: Task list:

main           	R	1	876	4


gather_sensor_t	X	1	1352	21


IDLE0          	R	0	692	5


IDLE1          	R	0	700	6


gather_sensor_t	B	1	2544	20


ds1307_update  	B	1	812	17


gather_task    	B	1	1752	19


gather_task    	B	1	14044	22


alive_diode_tas	B	5	352	8


reset_task     	B	0	3428	15


tiT            	B	18	2420	10


gather_sensor_t	B	1	1816	24


ota_task       	B	1	7512	18


CHIP           	B	1	3700	12


Tmr Svc        	B	1	1364	7


gather_sensor_t	B	1	1092	25


sys_evt        	B	20	2684	9


ipc0           	S	24	372	1


ipc1           	S	24	524	2


console        	B	5	644	16


gather_sensor_t	B	1	2544	26


esp_timer      	S	22	3332	3


wifi           	B	23	4244	11


gather_sensor_t	B	1	2332	23


btController   	B	23	1960	13


nimble_host    	B	21	1476	14




W (14888) DeviceStatus: RTC is uninitialized, using current time as timestamp


[WARN] Time not synced yet. Board might be offline or still connecting...
W (15110) AS7341: Reading basic counts data from AS7341

W (15126) AS7341: Reading flicker detection state from AS7341

W (15344) as7341: FD Status Register:  0x20 (0b00100000)

I (15350) AS7341: Updating Matter attributes with AS7341 data: 20808

I (15350) Flicker: Collecting 1024 samples at 1000 Hz for dominant frequency analysis for total measurement window of 1000 ms

I (15364) Flicker: Starting to collect samples in gather task

I (15352) esp_matter_attribute: ********** R : Endpoint 0x0001's Cluster 0x00000400's Attribute 0x00000000 is 0 **********

I (15378) esp_matter_attribute: ********** W : Endpoint 0x0001's Cluster 0x00000400's Attribute 0x00000000 is 20808 **********

E (15391) MAIN: Attribute update callback: endpoint_id: 1, cluster_id: 0x400, attribute_id: 0x0

E (15393) MAIN: Attribute update callback: endpoint_id: 1, cluster_id: 0x400, attribute_id: 0x0

W (15405) AS7341: Formatting AS7341 data in line protocol

AS7341 line protocol:

as7341_adc,device=A4CB8FC9473C f1=2,f2=11,f3=15,f4=16,f5=9,f6=13,f7=22,f8=13,clear=54,nir=7 946684801000000000

as7341_basic_counts,device=A4CB8FC9473C f1=4.46,f2=24.54,f3=33.46,f4=35.70,f5=20.08,f6=29.00,f7=49.08,f8=29.00,clear=120.47,nir=15.62 946684801000000000

as7341_flicker,device=A4CB8FC9473C state="unknown" 946684801000000000

W (15900) DeviceStatus: RTC is uninitialized, using current time as timestamp


[WARN] Time not synced yet. Board might be offline or still connecting...
I (16389) Flicker: Finished collecting samples, notifying main task

I (16391) Flicker: Collected 1024 samples for dominant frequency analysis

I (16398) SENSOR_GATHERER: Sensor should now be asleep

I (16408) BME688: Delaying for 199517 microseconds

I (16410) SENSOR_GATHERER: Sensor should now be asleep

I (16847) esp_matter_attribute: ********** R : Endpoint 0x0001's Cluster 0x00000403's Attribute 0x00000000 is null **********

I (16850) esp_matter_attribute: ********** W : Endpoint 0x0001's Cluster 0x00000403's Attribute 0x00000000 is 1004 **********

E (16862) MAIN: Attribute update callback: endpoint_id: 1, cluster_id: 0x403, attribute_id: 0x0

E (16875) MAIN: Attribute update callback: endpoint_id: 1, cluster_id: 0x403, attribute_id: 0x0

W (16877) BME688: RTC is uninitialized, using current time as timestamp


[WARN] Time not synced yet. Board might be offline or still connecting...
I (16903) SENSOR_GATHERER: Sensor should now be asleep

W (17888) BME688: RTC is uninitialized, using current time as timestamp


[WARN] Time not synced yet. Board might be offline or still connecting...
W (18889) BME688: RTC is uninitialized, using current time as timestamp


[WARN] Time not synced yet. Board might be offline or still connecting...
I (19808) SEN66: Sent start measurement command, waiting for sensor to be ready...

W (19891) BME688: RTC is uninitialized, using current time as timestamp


[WARN] Time not synced yet. Board might be offline or still connecting...
I (19914) MICROPHONE: Read 300000 bytes in 4936 ms

I (19915) MICROPHONE: Read 300000 bytes of audio data

I (20023) MICROPHONE: Sum SQ: 0.000000, RMS pressure: 0.000000, Normalized: 0.000000, dB peak: -inf

W (20025) SEN66: RTC is uninitialized, using current time as timestamp


[WARN] Time not synced yet. Board might be offline or still connecting...
W (20892) BME688: RTC is uninitialized, using current time as timestamp


[WARN] Time not synced yet. Board might be offline or still connecting...
W (21037) SEN66: RTC is uninitialized, using current time as timestamp


[WARN] Time not synced yet. Board might be offline or still connecting...
E (21825) esp-tls: couldn't get hostname for :influx.kota-app.com: getaddrinfo() returns 202, addrinfo=0x0


[FAIL] NETWORK ERROR: DNS Resolution Failed! Board cannot reach the internet. Did it lose WiFi?
E (21827) esp-tls: Failed to open new connection

E (21828) transport_base: Failed to open a new connection

E (21840) HTTP_CLIENT: Connection failed, sock < 0

I (21841) INFLUX: HTTP request performed, status code: 0

E (21852) INFLUX: Failed to perform HTTP request: 0, ESP_ERR_HTTP_CONNECT

E (21854) INFLUX_BUFFER: Failed to write chunk to Influx: ESP_FAIL


[FAIL] CLOUD ERROR: Failed to upload sensor data to InfluxDB.
W (21893) BME688: RTC is uninitialized, using current time as timestamp


[WARN] Time not synced yet. Board might be offline or still connecting...
W (22038) SEN66: RTC is uninitialized, using current time as timestamp


[WARN] Time not synced yet. Board might be offline or still connecting...
I (22780) SENSOR_GATHERER: 1/2 tasks still running, waiting...

W (22894) BME688: RTC is uninitialized, using current time as timestamp


[WARN] Time not synced yet. Board might be offline or still connecting...
W (23039) SEN66: RTC is uninitialized, using current time as timestamp


[WARN] Time not synced yet. Board might be offline or still connecting...
I (23281) SENSOR_GATHERER: 1/2 tasks still running, waiting...

I (23782) SENSOR_GATHERER: 1/2 tasks still running, waiting...

I (23865) INFLUX: Writing to InfluxDB

W (23895) BME688: RTC is uninitialized, using current time as timestamp


[WARN] Time not synced yet. Board might be offline or still connecting...
W (24040) SEN66: RTC is uninitialized, using current time as timestamp


[WARN] Time not synced yet. Board might be offline or still connecting...
I (24283) SENSOR_GATHERER: 1/2 tasks still running, waiting...

I (24777) OTA_CLIENT: Device is not registered, attempting to register...

I (24780) OTA_CLIENT: HTTP client handle: 0x3fcf04c0

I (24784) SENSOR_GATHERER: 1/2 tasks still running, waiting...

W (24896) BME688: RTC is uninitialized, using current time as timestamp


[WARN] Time not synced yet. Board might be offline or still connecting...
W (25041) SEN66: RTC is uninitialized, using current time as timestamp


[WARN] Time not synced yet. Board might be offline or still connecting...
I (25285) SENSOR_GATHERER: 1/2 tasks still running, waiting...

I (25786) SENSOR_GATHERER: 1/2 tasks still running, waiting...

W (25897) BME688: RTC is uninitialized, using current time as timestamp


[WARN] Time not synced yet. Board might be offline or still connecting...
W (26042) SEN66: RTC is uninitialized, using current time as timestamp


[WARN] Time not synced yet. Board might be offline or still connecting...
I (26287) SENSOR_GATHERER: 1/2 tasks still running, waiting...

I (26788) SENSOR_GATHERER: 1/2 tasks still running, waiting...

W (26898) BME688: RTC is uninitialized, using current time as timestamp


[WARN] Time not synced yet. Board might be offline or still connecting...
W (27043) SEN66: RTC is uninitialized, using current time as timestamp


[WARN] Time not synced yet. Board might be offline or still connecting...
I (27289) SENSOR_GATHERER: 1/2 tasks still running, waiting...

I (27790) SENSOR_GATHERER: 1/2 tasks still running, waiting...

W (27899) BME688: RTC is uninitialized, using current time as timestamp


[WARN] Time not synced yet. Board might be offline or still connecting...
W (28044) SEN66: RTC is uninitialized, using current time as timestamp


[WARN] Time not synced yet. Board might be offline or still connecting...
I (28291) SENSOR_GATHERER: 1/2 tasks still running, waiting...

I (28792) SENSOR_GATHERER: 1/2 tasks still running, waiting...

W (28900) BME688: RTC is uninitialized, using current time as timestamp


[WARN] Time not synced yet. Board might be offline or still connecting...
W (29045) SEN66: RTC is uninitialized, using current time as timestamp


[WARN] Time not synced yet. Board might be offline or still connecting...
I (29293) SENSOR_GATHERER: 1/2 tasks still running, waiting...

I (29794) SENSOR_GATHERER: 1/2 tasks still running, waiting...

W (29901) BME688: RTC is uninitialized, using current time as timestamp


[WARN] Time not synced yet. Board might be offline or still connecting...
W (30046) SEN66: RTC is uninitialized, using current time as timestamp


[WARN] Time not synced yet. Board might be offline or still connecting...
I (30295) SENSOR_GATHERER: 1/2 tasks still running, waiting...

I (30796) SENSOR_GATHERER: 1/2 tasks still running, waiting...

E (30866) esp-tls: couldn't get hostname for :bin.kota-app.com: getaddrinfo() returns 202, addrinfo=0x0


[FAIL] NETWORK ERROR: DNS Resolution Failed! Board cannot reach the internet. Did it lose WiFi?
E (30866) esp-tls: couldn't get hostname for :influx.kota-app.com: getaddrinfo() returns 202, addrinfo=0x0


[FAIL] NETWORK ERROR: DNS Resolution Failed! Board cannot reach the internet. Did it lose WiFi?
E (30868) esp-tls: Failed to open new connection

E (30880) esp-tls: Failed to open new connection

E (30881) transport_base: Failed to open a new connection

E (30892) transport_base: Failed to open a new connection

E (30893) HTTP_CLIENT: Connection failed, sock < 0

E (30905) OTA_CLIENT: Error ESP_ERR_HTTP_CONNECT at ./main/ota_client.cpp:223

E (30907) OTA_CLIENT: Device registration failed: ESP_ERR_HTTP_CONNECT


[FAIL] CLOUD ERROR: Failed to register with the OTA server.
E (30894) HTTP_CLIENT: Connection failed, sock < 0

W (30902) BME688: RTC is uninitialized, using current time as timestamp


[WARN] Time not synced yet. Board might be offline or still connecting...
I (30921) INFLUX: HTTP request performed, status code: 0

E (30933) INFLUX: Failed to perform HTTP request: 0, ESP_ERR_HTTP_CONNECT

E (30934) INFLUX_BUFFER: Failed to write chunk to Influx: ESP_FAIL


[FAIL] CLOUD ERROR: Failed to upload sensor data to InfluxDB.
W (31047) SEN66: RTC is uninitialized, using current time as timestamp


[WARN] Time not synced yet. Board might be offline or still connecting...
I (31297) SENSOR_GATHERER: 1/2 tasks still running, waiting...

I (31798) SENSOR_GATHERER: 1/2 tasks still running, waiting...

W (31922) BME688: RTC is uninitialized, using current time as timestamp


[WARN] Time not synced yet. Board might be offline or still connecting...
W (32048) SEN66: RTC is uninitialized, using current time as timestamp


[WARN] Time not synced yet. Board might be offline or still connecting...
I (32299) SENSOR_GATHERER: 1/2 tasks still running, waiting...

I (32404) chip[DL]: bleAdv Timeout : Start slow advertisement

I (32406) chip[DL]: Configuring CHIPoBLE advertising (interval 500 ms, connectable)

I (32408) chip[DL]: Device already advertising, stop active advertisement and restart

I (32420) NimBLE: GAP procedure initiated: stop advertising.



I (32422) NimBLE: GAP procedure initiated: advertise; 


[INFO] BLE Provisioning Started: Board has fallen back to Bluetooth. It needs WiFi credentials.
I (32434) NimBLE: disc_mode=2

I (32434) NimBLE:  adv_channel_map=0 own_addr_type=1 adv_filter_policy=0 adv_itvl_min=800 adv_itvl_max=800

I (32436) NimBLE: 



I (32800) SENSOR_GATHERER: 1/2 tasks still running, waiting...

W (32923) BME688: RTC is uninitialized, using current time as timestamp


[WARN] Time not synced yet. Board might be offline or still connecting...
I (32946) INFLUX: Writing to InfluxDB

W (33049) SEN66: RTC is uninitialized, using current time as timestamp


[WARN] Time not synced yet. Board might be offline or still connecting...
I (33301) SENSOR_GATHERER: 1/2 tasks still running, waiting...

I (33802) SENSOR_GATHERER: 1/2 tasks still running, waiting...

W (33924) BME688: RTC is uninitialized, using current time as timestamp


[WARN] Time not synced yet. Board might be offline or still connecting...
W (34050) SEN66: RTC is uninitialized, using current time as timestamp


[WARN] Time not synced yet. Board might be offline or still connecting...
I (34303) SENSOR_GATHERER: 1/2 tasks still running, waiting...

I (34804) SENSOR_GATHERER: 1/2 tasks still running, waiting...

W (34925) BME688: RTC is uninitialized, using current time as timestamp


[WARN] Time not synced yet. Board might be offline or still connecting...
W (35051) SEN66: RTC is uninitialized, using current time as timestamp


[WARN] Time not synced yet. Board might be offline or still connecting...
I (35305) SENSOR_GATHERER: 1/2 tasks still running, waiting...

I (35806) SENSOR_GATHERER: 1/2 tasks still running, waiting...

W (35926) BME688: RTC is uninitialized, using current time as timestamp


[WARN] Time not synced yet. Board might be offline or still connecting...
W (36052) SEN66: RTC is uninitialized, using current time as timestamp


[WARN] Time not synced yet. Board might be offline or still connecting...
I (36307) SENSOR_GATHERER: 1/2 tasks still running, waiting...

I (36808) SENSOR_GATHERER: 1/2 tasks still running, waiting...

W (36927) BME688: RTC is uninitialized, using current time as timestamp


[WARN] Time not synced yet. Board might be offline or still connecting...
W (37053) SEN66: RTC is uninitialized, using current time as timestamp


[WARN] Time not synced yet. Board might be offline or still connecting...
I (37309) SENSOR_GATHERER: 1/2 tasks still running, waiting...

I (37810) SENSOR_GATHERER: 1/2 tasks still running, waiting...

W (37928) BME688: RTC is uninitialized, using current time as timestamp


[WARN] Time not synced yet. Board might be offline or still connecting...
W (38054) SEN66: RTC is uninitialized, using current time as timestamp


[WARN] Time not synced yet. Board might be offline or still connecting...
I (38311) SENSOR_GATHERER: 1/2 tasks still running, waiting...

I (38812) SENSOR_GATHERER: 1/2 tasks still running, waiting...

W (38929) BME688: RTC is uninitialized, using current time as timestamp


[WARN] Time not synced yet. Board might be offline or still connecting...
W (39055) SEN66: RTC is uninitialized, using current time as timestamp


[WARN] Time not synced yet. Board might be offline or still connecting...
I (39313) SENSOR_GATHERER: 1/2 tasks still running, waiting...

I (39814) SENSOR_GATHERER: 1/2 tasks still running, waiting...

W (39930) BME688: RTC is uninitialized, using current time as timestamp


[WARN] Time not synced yet. Board might be offline or still connecting...
E (39947) esp-tls: couldn't get hostname for :influx.kota-app.com: getaddrinfo() returns 202, addrinfo=0x0


[FAIL] NETWORK ERROR: DNS Resolution Failed! Board cannot reach the internet. Did it lose WiFi?
E (39949) esp-tls: Failed to open new connection

E (39950) transport_base: Failed to open a new connection

E (39961) HTTP_CLIENT: Connection failed, sock < 0

I (39962) INFLUX: HTTP request performed, status code: 0

E (39974) INFLUX: Failed to perform HTTP request: 0, ESP_ERR_HTTP_CONNECT

E (39975) INFLUX_BUFFER: Failed to write chunk to Influx: ESP_FAIL


[FAIL] CLOUD ERROR: Failed to upload sensor data to InfluxDB.
W (40056) SEN66: RTC is uninitialized, using current time as timestamp


[WARN] Time not synced yet. Board might be offline or still connecting...
I (40315) SENSOR_GATHERER: 1/2 tasks still running, waiting...

I (40816) SENSOR_GATHERER: 1/2 tasks still running, waiting...

I (40919) OTA_CLIENT: Device is not registered, attempting to register...

I (40921) OTA_CLIENT: HTTP client handle: 0x3fcf0d68

W (40931) BME688: RTC is uninitialized, using current time as timestamp


[WARN] Time not synced yet. Board might be offline or still connecting...
W (41057) SEN66: RTC is uninitialized, using current time as timestamp


[WARN] Time not synced yet. Board might be offline or still connecting...
I (41317) SENSOR_GATHERER: 1/2 tasks still running, waiting...

I (41818) SENSOR_GATHERER: 1/2 tasks still running, waiting...

W (41932) BME688: RTC is uninitialized, using current time as timestamp


[WARN] Time not synced yet. Board might be offline or still connecting...
I (41986) INFLUX: Writing to InfluxDB

W (42058) SEN66: RTC is uninitialized, using current time as timestamp


[WARN] Time not synced yet. Board might be offline or still connecting...
I (42319) SENSOR_GATHERER: 1/2 tasks still running, waiting...

I (42820) SENSOR_GATHERER: 1/2 tasks still running, waiting...

W (42933) BME688: RTC is uninitialized, using current time as timestamp


[WARN] Time not synced yet. Board might be offline or still connecting...
W (43059) SEN66: RTC is uninitialized, using current time as timestamp


[WARN] Time not synced yet. Board might be offline or still connecting...
I (43321) SENSOR_GATHERER: 1/2 tasks still running, waiting...

I (43822) SENSOR_GATHERER: 1/2 tasks still running, waiting...

W (43934) BME688: RTC is uninitialized, using current time as timestamp


[WARN] Time not synced yet. Board might be offline or still connecting...
W (44060) SEN66: RTC is uninitialized, using current time as timestamp


[WARN] Time not synced yet. Board might be offline or still connecting...
I (44323) SENSOR_GATHERER: 1/2 tasks still running, waiting...

I (44824) SENSOR_GATHERER: 1/2 tasks still running, waiting...

W (44935) BME688: RTC is uninitialized, using current time as timestamp


[WARN] Time not synced yet. Board might be offline or still connecting...
W (45061) SEN66: RTC is uninitialized, using current time as timestamp


[WARN] Time not synced yet. Board might be offline or still connecting...
I (45325) SENSOR_GATHERER: 1/2 tasks still running, waiting...

I (45826) SENSOR_GATHERER: 1/2 tasks still running, waiting...

W (45936) BME688: RTC is uninitialized, using current time as timestamp


[WARN] Time not synced yet. Board might be offline or still connecting...
W (46062) SEN66: RTC is uninitialized, using current time as timestamp


[WARN] Time not synced yet. Board might be offline or still connecting...
I (46327) SENSOR_GATHERER: 1/2 tasks still running, waiting...

I (46828) SENSOR_GATHERER: 1/2 tasks still running, waiting...

W (46937) BME688: RTC is uninitialized, using current time as timestamp


[WARN] Time not synced yet. Board might be offline or still connecting...
W (47063) SEN66: RTC is uninitialized, using current time as timestamp


[WARN] Time not synced yet. Board might be offline or still connecting...
