[Tinyos-help] Assign value to an array NesC

2013-12-01 Thread nivedita datta
Hi, I am trying to initialize the values in an array by using the following command: *uint8_t i;* *uint8_t in[16] = {0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00};* *for (i=0; i<10; i++) {* * in[i] = i; }* However I am getting error message saying: *

Re: [Tinyos-help] Assign value to an array NesC

2013-12-01 Thread Jenis Modi
I think you should try and understand your code. If you provide 2 lines of code, noone is going to help you (don't send me full code now, think yourself why removing for loop is resolving your problem). These are very basic questions and noone will reply you for it. Try to send questions at one

Re: [Tinyos-help] Assign value to an array NesC

2013-12-01 Thread Bipin
Hello... Try to so with yourself .. this is the basic thing is NesCIf you want to generate separate key for each communication. then you should have to do with that code only... There is one master key in the code, using that master key

Re: [Tinyos-help] Assign value to an array NesC

2013-12-02 Thread Philip Levis
There should be no difference between a C for loop and a nesC one: nesC is a C dialect. I have no idea what your problem might be; I think that's people's concern, that the bug is actually elsewhere for some reason. Could you provide a full file? Phil --- Philip Levis Associate Professor C

Re: [Tinyos-help] Assign value to an array NesC

2013-12-02 Thread Eric Decker
she has code buried in the middle of declarations. On Mon, Dec 2, 2013 at 10:59 AM, Philip Levis wrote: > There should be no difference between a C for loop and a nesC one: nesC is > a C dialect. I have no idea what your problem might be; I think that's > people's concern, that the bug is actua