Module :: Q2686G.
The firmware version is :: R74_00gg.Q2686G
Application OS :: 06.21
Boot loader version :: V08b0e
consider the following structure,
typedef struct{
char ch;
}TEST;
if we get the size of this structure means, its showing 4 bytes.
Is there any thing like pragma pack in keil which will remove structure padding and consuming one byte alone in M2M studio?
It rather clogs the forum up when you just block-quote the entire message.
It’s only really useful to quote when you need to make clear which specific point you are referring to; eg,
I would suggest, from experience, that packing your structures is not a good way to do it!
The issues it raises with the rest of your code are just not worth it.
Instead, have your code build the message in a byte buffer (without padding) - and just send that buffer…
This also has the advantage of making your code portable, and not reliant upon particular compiler features & options…