external/wakaama : fix bug parsing int64_t type
This commit fixes an unresolved wakaama server issue.
When executing to create client resource, returns error
COAP_400_BAD_REQUEST. To solve this problem, It's necessary to change
the input data type to 64 bits.
@@ -642,7 +642,8 @@ static void prv_create_client(char * buffer,
{
lwm2m_data_t * dataP;
- if (1 != sscanf(buffer, "%d", &value))
+ value = 0;
+ if (1 != sscanf(buffer, "%"PRId64, &value))
{
fprintf(stdout, "Invalid value !");
return;
