SIM800L signal level request

Job ID: 31054567

Budget: $10 – $30 USD

I need a function that returns the signal level from the SIM800l module.
I'm using the module with arduino mega and serial2 for communication between devices.
AT + CSQ command
Returns the signal strength. Maximum value of 31. The minimum value for safe operation is 5.
This command values ​​values ​​and strings together, I just need the function to return the signal value without the strings.

AT+CSQ
+CSQ: 14,0
OK

I just need the number value returned in the function.
Related categories: C Programming Electronics Microcontroller Arduino