Re: CBOR encoding problems.

2018-04-03 Thread Aditya Xavier
Never mind, I think I got it working. The problem it seems is that the Array has to be a const or declared inside the method. Even though the compiler doesn’t throw a warning / error, thats what it needs. PS, doing a os_mbuf_clear_chain and then doing os_mbuf_get is that an efficient way to

Re: CBOR encoding problems.

2018-03-31 Thread Andrzej Kaczmarek
Hi Aditya, On Sat, Mar 31, 2018 at 5:51 AM, Aditya Xavier wrote: > Increasing MSYS_1_BLOCK_COUNT to 30 gets it to work, but if I increase it to > 40 it doesn’t. > Block size being 110. > > Any reasoning behind this pattern? This is strange. Can you post some piece of code

Re: CBOR encoding problems.

2018-03-30 Thread Aditya Xavier
Increasing MSYS_1_BLOCK_COUNT to 30 gets it to work, but if I increase it to 40 it doesn’t. Block size being 110. Any reasoning behind this pattern? Also what would is behaviour of os_mbuf_free? Do I need to re init it again? Sent from my iPhone > On 30-Mar-2018, at 1:58 AM, Christopher

Re: CBOR encoding problems.

2018-03-29 Thread Christopher Collins
On Thu, Mar 29, 2018 at 10:27:36PM +0530, Aditya Xavier wrote: > Thanks for the tip. Would try that too.. > > However, I have tried few variations to check the BLE side ( whether it was > responsible for truncating ) > > 1. I am able to send the same message using encoding only.. i.e. if I

Re: CBOR encoding problems.

2018-03-29 Thread Christopher Collins
Hi Aditya, On Thu, Mar 29, 2018 at 08:52:08PM +0530, Aditya Xavier wrote: [...] > And it doesn’t work when am trying to trigger it from BLE. > > Assuming it was a memory issue, I used a mem_pool, mbuf, allocating > and reserving space. However, problem remains. > > It usually encodes and sends