We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
I've notice that save_jpeg function is defined:
save_jpeg
Seeed_Arduino_SSCMA/src/Seeed_Arduino_SSCMA.cpp
Lines 845 to 855 in 79fa2de
However there are serval action triggers in your AT sets.
I think if we define as the following, could be better:
bool SSCMA::action_fuc(const String& action) { const int MAX_CMD_LENGTH = 64; char cmd[MAX_CMD_LENGTH] = {0}; int result = snprintf(cmd, sizeof(cmd), CMD_PREFIX "%s=\"%s\"" CMD_SUFFIX, CMD_AT_ACTION, action.c_str()); if (result < 0 || result >= MAX_CMD_LENGTH) { return false; } if (write(cmd, strlen(cmd)) == -1) { return false; } return wait(CMD_TYPE_RESPONSE, CMD_AT_ACTION) == CMD_OK; }
bool SSCMA::save_jpeg() { return action_fuc("save_jpeg"); }
if so, AI.action_fuc("") can clean the action sets.
The text was updated successfully, but these errors were encountered:
No branches or pull requests
I've notice that
save_jpeg
function is defined:Seeed_Arduino_SSCMA/src/Seeed_Arduino_SSCMA.cpp
Lines 845 to 855 in 79fa2de
However there are serval action triggers in your AT sets.
I think if we define as the following, could be better:
if so, AI.action_fuc("") can clean the action sets.
The text was updated successfully, but these errors were encountered: