I'm working on a remote home monitoring system for my off grid cabin. I have the MKR GSM that I will text to get status updates. In the code I'm writing I'm searching the incoming phone number to only respond to my phone, and then searching the text body for commands.
As I research code I see a lot of string searching uses indexOf(). Not many examples use Substring. Is there a reason? Is there an advantage to one over the other? Maybe it's splitting hairs and it doesn't matter for a non-intensive application.
Thanks for your input, Spanky