Other Parts Discussed in Thread: CC3200
Hello,
Opening this question again as the replies to the last one were not visible to anyone: https://e2e.ti.com/support/wireless-connectivity/wi-fi-group/wifi/f/wi-fi-forum/1109936/cc3100-reopening-sl_ip_lease_expired-2-error
I am trying to get some help understanding the SL_IP_LEASE_EXPIRED (2) error.
Apparently SL_IP_LEASE_EXPIRED is related to is an AP DHCP Server - IP Release reason. I assume this means the CC3100 was unable to renew the IP with the DHCP server of the AP - either because of an internal failure or because the AP is rejecting the renewal? I see this error sometimes as well: SL_ERROR_DHCP_CLIENT_RENEW_FAILED (-100). I assume they're related.
Device Info:
- MQTT enabled
- Station Mode
The device is never configured for AP mode. Our devices are only ever acting as a client. Unfortunately I'm unable to get NWP or sniffer logs as these devices are in-field.
Singling out out a few of these devices, I see that they're always surrounded (happening around the same time) by error number -452 or 109/110.
From what I've learned -452 means the broker terminated the TLS session but the TCP connection is still up.
The error is returned by sl_Recv()
.
A few points:
- Theory that multiple devices with the same Client ID (MQTT) being used
- Not possible. All devices have their own unique ID. Confirmed with broker logs during the times this error was triggered.
- Broker logs do not display any indication of a TLS session termination
This seems to happen with a large number of our devices. I have not be able to reproduce on my own. Just trying to get some guidance one what can be done to mitigate or avoid this.
Thank you