Other Parts Discussed in Thread: SIMPLELINK-CC13XX-CC26XX-SDK,
Good day,
At the moment our Coap server is running, and Coap client GET request are working good.
However, after a specific amount of Coap client requests and time, we encounter an error.
To handle the error we placed a WHILE loop to see if it will ever obtaining a pointer to a message buffer.
We are constantly getting (message == NULL), and it never exists the loop.
Even if we return from the function that should do the Coap client request and re-enter it again to send a message
It fails to do so. We keep the default settings. Therefore, we assume that it may be because no message buffers are available.
An attempt to use otMessageFree() was done inside the Coap client request, and we tried inside the coap_HandleResponse() callback as well with no success.
What could be the problem, and how could I go about resolving it?
otMessage * message = NULL;
message = otCoapNewMessage((otInstance *)OtInstance_get(), NULL);
if(message == NULL)
{
// Handle error
while(message == NULL)
{
message = otCoapNewMessage((otInstance *)OtInstance_get(), NULL);
}
}
Kind regards,
Logan Becker