COAST-Lab / Open-Water-Level

An open-source, low-cost, DIY ultrasonic water level sensor
MIT License
9 stars 4 forks source link

Particle update #18

Open Stephen-Lail opened 7 months ago

Stephen-Lail commented 7 months ago

In the current update of Particle, the SYSTEM_MODE(SEMI_AUTOMATIC) did not work and the Boron 404X was still searching for signal (green light was flashing). It can be fixed by replacing it with SYSTEM_MODE(MANUAL) and having #include "Particle.h" at the top of the code. There may be other solutions to this issue but this is the one I found to work.

SUPScientist commented 6 months ago

Likely related to the updates described here: https://community.particle.io/t/new-particle-project-template/65629. Note that adding the #include statement is due to the shift from using a .ino file as default to .cpp. #include was invisible "under the hood" when we used to use .ino. Not sure about SEMI_AUTOMATIC yet but investigating this further...

SUPScientist commented 6 months ago

SEMI_AUTOMATIC is still on the list in the latest docs for DeviceOS: https://docs.particle.io/reference/device-os/api/system-modes/system-modes/. Not sure what the issue was but keeping this open till we learn more.

Did the code with SEMI_AUTOMATIC call Cellular.off()?