Closed EliasA97 closed 1 year ago
Please give an example of the problem. Note that version 0.5.6. is the same as 0.5.5, there is just a change in the documentation
On Fri, Dec 2, 2022 at 7:11 AM EliasA97 @.***> wrote:
As the title says these 2 versions of the library doesn't seem to encode and print the USC2 string. It prints nothing. I'm switching to 0.5.4 that seems to work fine.
— Reply to this email directly, view it on GitHub https://github.com/mgaman/PDUlib/issues/31, or unsubscribe https://github.com/notifications/unsubscribe-auth/AA3KSTVTAAOXE6B2DMDVRHDWLGAJ7ANCNFSM6AAAAAASRQVJHQ . You are receiving this because you are subscribed to this thread.Message ID: @.***>
I deleted my previous answer because at last there isn't any problem with the library. The issue was like this:
Before 0.5.5 this command PDU mypdu = PDU();
wasn't expecting any value but now it needs a specified buffer like this PDU mypdu = PDU(160);
I thought that this buffer was for the max UCS2 sms which is 140 characters. I tried to increase that from 140 to 160 and then to 200 and finally to 300. Now I can view the UCS2 messages fine.
For future reference the buffer is for the UCS2 character array, so 70 utf8 letters are about +- 300 bytes
As the title says these 2 versions of the library doesn't seem to encode and print the USC2 string. It prints nothing. I'm switching to 0.5.4 that seems to work fine.