Dash network status LED


#1

So I have been trying to make my power LED (This is a green LED on D10) solid during normal operation, and blink when the SIM is being initialized when first plugged in. Ive been trying the StringSubstring fuction, but cant get it working well. Since the following code is char based, and StringSubstring needs a string to work.

Here is how im writing to my serial screen:
char currChar;

while (SerialCloud.available()) {
currChar = (char)SerialCloud.read();
SerialUSB.write(currChar);
}

How can I isolate the (14/14) for example? Or something else to know that the module is indeed online??


#2

Check out the existing example for SMS


#3

Works like a charm, thanks for that.


#4

I forgot to mention, I have mine watching for the keyword ‘passthrough’ instead of “14/14”.


#5