mcci-catena / Catena-Sketches

Top-level Arduino sketches for the MCCI Catena family of IoT LPWA Devices
MIT License
12 stars 21 forks source link

Sends when a event happends #111

Open camilo-17 opened 4 years ago

camilo-17 commented 4 years ago

Hello everyone, excuse my English, I would like to know if there is or someone has developed a sketch where the shipment is made when an event happens, I want to make a project where data is sent every 10 minutes and every time a button is pressed thank you very much for your attention

terrillmoore commented 4 years ago

Hi Camilo, we have done this, but as you can see, it requires a different sketch structure. For more complicated applications, I always use a combination of finite state machines, so I can really control what's going on. If you look at the example sensor sketch for the Catena 4430 https://github.com/mcci-catena/mcci-catena-4430/tree/master/examples/Catena4430_Sensor, you'll see a more structured, fully-worked application. It doesn't send messages on demand, but I think it's much easier to adapt to send messages on demand.

Perhaps my team here at MCCI (@dhineshkumarmcci @sjpark-mcci @svelmurugan92) can work with me to put together a clean sample sketch, structured with explicit FSMs, that supports an uplink on event as well as a periodic uplink.