How to solve socket -23 error while creating multiple server in nRF9160

Hi Support team,

I am  using nRF9160 module and i want run two server on the module, one is modbus server and other is CoAP server. so is it possible to run both server simultaneously ?

Thanks,

Dvl

Parents
  • Hi Dvl,

    I have managed to replicate the error. However, I also got IP address error which I do not see in your log. Could this also be due to IP address not being static?

    Below is my log.

    <err> main: [311]IP_Address_str : 10.61.100.236
    <inf> CoAP_APP: coap_service_start : 0
    <inf> CoAP_APP: coap_service_is_running : 1
    <inf> main: [171]StartTCPServer
    <inf> main: [187]StartTCPServer >> socket >> serv >> 3
    <inf> main: Started TCP server example on port 502, 0
    <err> main: error: accept: 23, -1
    <err> main: error: accept: 23, -1
    



    Best regards,
    Dejan

Reply
  • Hi Dvl,

    I have managed to replicate the error. However, I also got IP address error which I do not see in your log. Could this also be due to IP address not being static?

    Below is my log.

    <err> main: [311]IP_Address_str : 10.61.100.236
    <inf> CoAP_APP: coap_service_start : 0
    <inf> CoAP_APP: coap_service_is_running : 1
    <inf> main: [171]StartTCPServer
    <inf> main: [187]StartTCPServer >> socket >> serv >> 3
    <inf> main: Started TCP server example on port 502, 0
    <err> main: error: accept: 23, -1
    <err> main: error: accept: 23, -1
    



    Best regards,
    Dejan

Children
No Data
Related