Sorry about the delay; I've been away. No, don't modify the base station code to listen for packets; just write a little daemon to listen on UDP port 3001, which will inform the kernel that someone is interested in messages send to that host; that's what Listener.py is basically doing.
On Thu, Mar 26, 2009 at 5:11 AM, swaytha sasi <[email protected]> wrote: > Thanks for the reply.....and when i change it a multicast address the error > goes away.But i want to send the message only to the base station. So should > i alter the base station code to listen for the datagrams? > The following is part of my send side code..... > > { > inet_pton6("2001:470:1f04:56d::64", &destn_addr.sin6_addr); > destn_addr.sin6_port = htons(3001); > /// > > event void Timer.fired() { > report.seq = counter; > counter++; > > call UDP.sendto(&destn_addr,&report,sizeof(nx_struct msg_report)); > call Leds.led0Toggle(); > } > > With Thanks, > Swaytha. > > >
_______________________________________________ Tinyos-help mailing list [email protected] https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
