Code to capture serial string as variable


I’m having a bit of trouble capturing an sms message from my dashboard and setting it as a variable. I can see data come through a serial monitor. I can program the board to do what i want locally, I just want to get a string from sms and save it in a variable in my script to trigger pin output. can someone help me with this?


This might help: Howto send data to dash pro?

We also have some code in github that uses a similar approach: