There are many different ways to get your flow updated on GSMCloud - we're not talking about Software Update, but about the flow being updated with data.
There are a few different examples of this, one would be that something should happen if an SMS message comes to the device - another could be if you want to be notified if something is wrong every 30 minutes, but also get a message immediately and not wait.
Why should these methods be used occasionally?
Due to the way data is sent through our flow, you can easily hit what is called "deadlock". An example of this would be if you as a person send 2 SMSs to the device with the same phone number, it will go into deadlock because the "sender" is not changed - thus the data does not change.
Deadlock can happen in many different ways and can be really annoying. One of the things you have to take into account in some cases.
When should I use what kind of update system?
There are a number of different options depending on which UseCase you have. If you are using the Receive SMS node - we recommend using its Timestamp as an update.
On the other hand, if you want updates every 30 minutes if something is wrong and stays wrong, it gets a little more complicated. This would require 2 systems to be interconnected. One would be a system that sends updates every 30 minutes - so 00:00 -> 00:30 -> 01:00... And one that notifies you immediately. Many people will find that they hit a wall where they get notifications constantly because they are not connected.
This would be our start for this solution. A very basic system to check every 30min that goes into an "OR Gate".
Then you can create your logic and send its output on to our next part.
Now that we have the concept and logic of the first part, we need to connect it to the instant system. Then we need to create some form of an "AND Gate" system that can decide whether to close our instant update or leave it open.
So we need a system that checks if A is greater or less than B - if one of them is correct send TRUE to their own "AND Gate" - then we need an AND gate and move on to the notification part.
Other Methods to update
Of course, there are other methods you can use to refresh your flow. But you should always remember that it is possible to hit a deadlock and you need to take that into account.
Examples of finished flow diagrams
SMS Control system with update management
Time-based system with delays and handling for frequent messages.