How to send runicast message to itself?

Viewed 44

I'm studying a wireless sensor network and I'm implementing a distributed algorithm. What I want that it sends a runicast message to itself.

I tried to send runicast message to '&rimeaddr_node_addr', but it timedout.

runicast_send(&runicast, &rimeaddr_node_addr, MAX_RETRANSMISSIONS);

runicast_open(&runicast, 144, &runicast_callbacks);    
message *msg = malloc(sizeof(msg));
msg->type = DISCOVER;
msg->size = sizeof(*msg);
packetbuf_copyfrom(&msg, sizeof(msg));
runicast_send(&runicast, &rimeaddr_node_addr, MAX_RETRANSMISSIONS);

So, I couldn't send runicast to itself. Could you help me please?

0 Answers
Related