Equivalent of SIOCOUTQ ioctl call for sockets on 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?

Parents Reply Children
  • 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

Related