The problem is when you read the value from the meter where content varies, for example, profile generic buffer. In some profile generic buffers there might be only integer values and that is easy to handle.
With some profile generic buffers there is an array of byte buffers. In some profile generic buffers there are an array of arrays.
We can read all the data from the meter without malloc if we know what kind of data to expect.
Profile generic buffers are causing problems because data type is changing between profile generic types.
Hi,
Hi,
You can't use client example without malloc at the moment. We are making a new example from client that can be used without malloc.
Client side without malloc is challenging because you need to know what kind of data meter is sending and you need to allocate memory for that.
BR,
Mikko
Thanks.
Thanks.
If I create a buffer with max data size and pass it to stack, will it work?
Hi,
Hi,
The problem is when you read the value from the meter where content varies, for example, profile generic buffer. In some profile generic buffers there might be only integer values and that is easy to handle.
With some profile generic buffers there is an array of byte buffers. In some profile generic buffers there are an array of arrays.
We can read all the data from the meter without malloc if we know what kind of data to expect.
Profile generic buffers are causing problems because data type is changing between profile generic types.
BR,
Mikko