Feature Request - Add possibility for at_host filter

NCS 3.1.0 (and newer), nRF9160/51

Some applications using "at_host", maybe together with "at_cmd_custom", would benefit from a possible filter before passing the at-cmds received from serial (maybe external) to the modem.

While the exact filter mechanism may vary a lot, depending on the requirements, one way to add such a filter would be to add a weak function e.g.

__weak int at_host_send(char *at_buffer, size_t at_buffer_size)
{
	return nrf_modem_at_cmd(at_buffer, at_buffer_size, "%s", at_buffer);
}

That would allow to overwrite that in the own application and then filter the execution based on the application needs.

There may be other alternative strategies, e.g. "block receiving rx" (but that doesn't help to select allowed at-cmds) or add that filter to the custom at-cmds (but that will only work for own custom cmds), so my favorite would be that weak function.

Parents Reply Children
No Data
Related