Skip to content

Commit

Permalink
Changed MEM size for LwIP.
Browse files Browse the repository at this point in the history
Wakaama needs more memory for multiple object management
  • Loading branch information
Maksymilian Wojczuk committed Nov 13, 2018
1 parent 76c9fa9 commit 421c7ba
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions Inc/lwipopts.h
Original file line number Diff line number Diff line change
Expand Up @@ -142,6 +142,8 @@
/*-----------------------------------------------------------------------------*/
/* USER CODE BEGIN 1 */

#define MEM_SIZE 3200

/* USER CODE END 1 */

#ifdef __cplusplus
Expand Down
2 changes: 1 addition & 1 deletion Src/communication/wakaama_client/objects/object_target.c
Original file line number Diff line number Diff line change
Expand Up @@ -353,7 +353,6 @@ lwm2m_object_t * get_target_object(void)

TARGET_t *target = target_list.next;
while(target != NULL) {
printf("Add targetObject: %d\n", i);
targetP = (target_instance_t *)lwm2m_malloc(sizeof(target_instance_t));
if (NULL == targetP) return NULL;
memset(targetP, 0, sizeof(target_instance_t));
Expand All @@ -371,6 +370,7 @@ lwm2m_object_t * get_target_object(void)

targetObj->instanceList = LWM2M_LIST_ADD(targetObj->instanceList, targetP);

printf("Add targetObject %d: %s\n", i, targetP->target_type);
target = target->next;
i++;
}
Expand Down

0 comments on commit 421c7ba

Please sign in to comment.