This software synchronizes the time of the system with that of MHO-C303. Tested with GCC 10 on Ubuntu 21.04 on Raspberry Pi 4 Model B. This should work for lywsd02 too.
(image from ble-monitor)
cmake -B build -S .
cmake --build build
cmake -DCMAKE_BUILD_TYPE=Release -B build -S . -GNinja
cd build && sudo ninja install