[feat] dynamic memory allocation for iot messages.