• AVR Freaks

Hot!Getting M2M_SOCKET_CONNECT_EVENT but I don't think I should.

Author
larrycook99
New Member
  • Total Posts : 24
  • Reward points : 0
  • Joined: 2012/04/01 11:37:34
  • Location: Lexington, KY
  • Status: offline
2019/11/17 15:16:04 (permalink)
0

Getting M2M_SOCKET_CONNECT_EVENT but I don't think I should.

I have code that implements an HTTP server using the mla tcp server example code dated 2018-11-26.
 
It seems to work ok but as I am troubleshooting issues, I noticed that I am receiving an M2M_SOCKET_CONNECT_EVENT  message even though I never call connect(). My understanding is that should only occur if I have tried to connect to another tcp server. Is my understanding correct about this?
 
Can someone help me understand why I am seeing this event when I don't believe that I should be?
 
Also posted in "Wifi".
post edited by larrycook99 - 2019/11/17 15:21:31
#1

1 Reply Related Threads

    larrycook99
    New Member
    • Total Posts : 24
    • Reward points : 0
    • Joined: 2012/04/01 11:37:34
    • Location: Lexington, KY
    • Status: offline
    Re: Getting M2M_SOCKET_CONNECT_EVENT but I don't think I should. 2019/11/17 15:50:09 (permalink)
    0
    This M2M_SOCKET_CONNECT_EVENT  appears to be coming directly from the ATWINC1500.
    It looks like I am getting a SOCKET_CMD_SEND op code in the SocketInternalEventHandler() which is only called from the hif_isr() which is receving data from the ATWINC1500 via spi.
     
    So, why would I be seeing the M2M_SOCKET_CONNECT_EVENT from the ATWINC1500 if I have never initiated a connect()?
    #2
    Jump to:
    © 2020 APG vNext Commercial Version 4.5