LOG¶
Online Sensing Execution Logs¶
Example 1: Initialization and Start¶
I (12345) OnlineSensing: Online sensing initialized:
I (12345) OnlineSensing: - Sampling frequency: 20.00 Hz
I (12345) OnlineSensing: - MQTT enabled: Yes
I (12345) OnlineSensing: - Serial output enabled: Yes
I (12350) OnlineSensing: ADXL355 sensor handle set
I (12355) OnlineSensing: Online sensing started (frequency: 20.00 Hz, period: 50000 us)
Example 2: Data Output (MQTT and Serial)¶
0.012345,-0.045678,0.987654,25.50
0.012346,-0.045679,0.987655,25.51
0.012347,-0.045680,0.987656,25.52
...
Example 3: Runtime Frequency Update¶
I (23456) OnlineSensing: Sampling frequency updated to 50.00 Hz
I (23460) OnlineSensing: Online sensing stopped
I (23465) OnlineSensing: Online sensing started (frequency: 50.00 Hz, period: 20000 us)
Example 4: Stop Operation¶
Example 5: Error - Invalid Frequency¶
Example 6: Error - Sensor Handle Not Set¶
Example 7: Error - Already Running¶
Example 8: MQTT Publish Failure¶
Example 9: Sensor Read Failure¶
E (89012) OnlineSensing: Failed to read acceleration: ESP_ERR_TIMEOUT
E (89015) OnlineSensing: Failed to read temperature: ESP_ERR_TIMEOUT
Example 10: Deinitialization¶
Log Format¶
The logs follow this format:
- I: Info level log
- E: Error level log
- W: Warning level log
- D: Debug level log
Tag Name¶
OnlineSensing: Online sensing module
Common Log Patterns¶
- Initialization: Module initialization with configuration details
- Start/Stop: Operation start and stop messages
- Configuration: Runtime configuration updates
- Error Messages: Error codes and descriptions
- Data Output: Serial output of sensor data (if enabled)