Skip to content
New issue

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

Error when requesting command format ( AT+CMD=? ) when command has more than 5 arguments. #51

Closed
andrewstillie opened this issue Jan 9, 2024 · 2 comments

Comments

@andrewstillie
Copy link

Love this implementation, but I am experiencing an issue when requesting command format ( AT+CMD=? )with a command with 7 arguments.
Its there a limit on the max number of arguments a command can have or can I adjust this?

@andrewstillie
Copy link
Author

I have fixed it by increasing the buf array size to 512

static char buf[512];

static struct cat_command_group cmd_group = {
.cmd = cmds,
.cmd_num = sizeof(cmds) / sizeof(cmds[0]),
};

static struct cat_command_group *cmd_desc[] = {
&cmd_group
};

static struct cat_descriptor desc = {
.cmd_group = cmd_desc,
.cmd_group_num = sizeof(cmd_desc) / sizeof(cmd_desc[0]),

    .buf = buf,
    .buf_size = sizeof(buf)

};

@mdtopham
Copy link

mdtopham commented Jan 9, 2024 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants