adafruit / Adafruit_BluefruitLE_nRF51

Arduino library for nRF51822-based Adafruit Bluefruit LE modules
197 stars 122 forks source link

Add support for reading back string replies to AT commands #56

Closed ihaque closed 3 years ago

ihaque commented 3 years ago

This PR adds two (pairs of) helper functions to Adafruit_ATParser to allow the user to read back results from AT commands that return string values (e.g., AT+GATTLIST). (They come in pairs taking char* and FlashStringHelper* command params.)

No existing code was modified; only these functions were added.

I have tested this code inside a personal project still pending release running on the Feather 32u4 Bluefruit LE, and only in the narrow use case of checking the output from AT+GATTLIST, but it works fine there. I have not tested it on any other platforms.