Hi,
I would like to get the amount of unsent data in the socket send queue on nrf9160. For linux there is the SIOCOUTQ ioctl call, is there something equivalent for nrf9160?
Hi,
I would like to get the amount of unsent data in the socket send queue on nrf9160. For linux there is the SIOCOUTQ ioctl call, is there something equivalent for nrf9160?
Hi,
Unfortunately, there is no API to see the depth of the socket queue.
is there something equivalent for nrf9160?
The closest functionality is to push data until you get a errno returned, unfortunately. The application is not able to get detailed information related to when the data is successfully sent.
Kind regards,
Håkon
So the only way for the application to know if a e.g an mqtt message has been sent is to set qos to 1 and wait for an ack?
I want to be sure that the messages has been sent, but it is not critical if some get lost. Receiving an ack for each message is way to costly both in terms of power and data usage.
Hi,
gjoasen said:So the only way for the application to know if a e.g an mqtt message has been sent is to set qos to 1 and wait for an ack?
I want to be sure that the messages has been sent, but it is not critical if some get lost. Receiving an ack for each message is way to costly both in terms of power and data usage.
Yes, this is correct. The modem will handle retransmits on a protocol level (TCP, as well as the optional mqtt qos level specific to your chosen protocol) as well as on a physical radio level.
Kind regards,
Håkon
Hi,
gjoasen said:So the only way for the application to know if a e.g an mqtt message has been sent is to set qos to 1 and wait for an ack?
I want to be sure that the messages has been sent, but it is not critical if some get lost. Receiving an ack for each message is way to costly both in terms of power and data usage.
Yes, this is correct. The modem will handle retransmits on a protocol level (TCP, as well as the optional mqtt qos level specific to your chosen protocol) as well as on a physical radio level.
Kind regards,
Håkon