To stream data from an MPU6050 IMU to detect movement during sleep.
Have a button to start/stop the streaming of data.
Reacts to messages published on the device base topic. Ideally these should be sticky/retained so that the device can resume operation even if it crashes and restarts.
Using the device DOIT ESP32 DEVKIT V1
in Arduino IDE.
Copy wifi_config.example.h
to wifi_config.h
and configure accordingly. Root CA certificate can be pasted in PEM format (see example) and is needed to verify the authenticity of the broker the device is connecting to.
Libraries & Resources: