I'm trying to create a Zephyr Shell command where I can write a certificate to the modem. Putting the certificate in the command line doesn't work, so I was going to use the getchar() command to read it in as part of the command operation. getchar doesn't work. If I try to use console_getchar() it crashes. If I power up with console_init then the shell locks up.
I was hoping that there was going to be a shell_getchar() or something similar to the shell_print which I could use to get input. But I haven't found anything like that.
Is there a way to crack this nut?