This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

CC3235MODAS: AT Cmd Mode and HTTP Server Tokens

Part Number: CC3235MODAS
Other Parts Discussed in Thread: CC3235MODS

Hello,

How are you? 

We are using CC3235MODS with at commands from at_commands firmware from sdk example. Our client use custom html pages (with custom tokens defined) to configure wifi connection. With simple link host driver we could get that using the NetApp API ( Using a callback from tokens of the HTTP Server), but with at cmds there are no way to do that. Do you have an idea as how we can do that using at cmds? We could implement that in the at cmd examples but if you help us with some guidelines to do that will be most appreciated. Also, there are HTTP Clients api in at cmds, but we have no idea how to use them to get custom tokens from the HTTP server.

Thanks,

João Paulo   

  • You will need to implement the HTTP server interface in the example. The HTTP server is not supported currently though AT commands.

    HTTP client API are used to connect to cloud HTTP server and can't help for your use case.

    If you want to implement new AT CMDs commands or events you would need to add them to the ATCMD library first., but i don't think it will be necessary for your use-case. 

  • I see. I am think i will need to implement in the AT lib, probably as async event for netapp. Do you have any example recommendation or other source guidelines  to easy how i can do this? 

    Thanks.

  • Handling the HTTP Server events in the external host may not be the easiest solution. I would handle it as part of the AT_Commands example (see Local OTA or OOB examples as a reference). 

    If you still need to add AT command or event - it is definitely an option.

    There is no guide available, but the code is relatively simple.

    In atcmd_defs.c you'll find the commands array that you'll need to update (ATCmd_list) if you add a command (and then you'll need to implement the callback). The file also contains the events (string) definitions that you can refer. I believe the usage is quiet straightforward (use any existing command or event as a reference).