131 char *token = message;
133 while (isspace(*token))
143 token = strtok(token,
":");
144 while (token != NULL)
147 token = strtok(NULL,
":");
168 char *parameter = message;
170 parameter = strtok(parameter,
",");
171 while (parameter != NULL)
173 while (isspace(*parameter))
176 parameter = strtok(NULL,
",");
SCPI_Commands()
Default constructor.
char * not_processed_message
Remaining message text after token parsing.
SCPI_Parameters()
Default constructor.
uint8_t size_
Current size of the array.
uint8_t Size() const
Get the number of stored strings.
char * operator[](const byte index) const
Read-only array indexing.
bool overflow_error
Flag set when exceeding storage_size.
const uint8_t storage_size
Max number of entries allowed.
void Append(char *value)
Append a new string to the array (LIFO push).
char * values_[6]
Internal storage for string pointers.
char * Last() const
Get the last appended string.
char * Pop()
Remove and return the last string (LIFO pop).
char * First() const
Get the first appended string.