Denis Kenzior
2018-10-20 16:04:45 UTC
Hi Giacinto,
what command he is actually finishing since there may be other commands
being queued.
You might want to provide more context as to what you're actually trying
to accomplish. It might be easier to just use g_at_chat_cancel and a
g_timeout_add_seconds combination for this...
Regards,
-Denis
added the function g_at_chat_finish_command, in order to be able to
interrupt a pending command.
The function is useful in special cases, for example to implement
a custom g_at_chat_set_wakeup_command. This command will never
return if the device does not answer, and therefore it is unsuitable
to probe configurations.
I don't think this is a good idea. In general the caller has no clueinterrupt a pending command.
The function is useful in special cases, for example to implement
a custom g_at_chat_set_wakeup_command. This command will never
return if the device does not answer, and therefore it is unsuitable
to probe configurations.
what command he is actually finishing since there may be other commands
being queued.
You might want to provide more context as to what you're actually trying
to accomplish. It might be easier to just use g_at_chat_cancel and a
g_timeout_add_seconds combination for this...
Regards,
-Denis