我正在研究无线传感器网络,并且正在实施分布式算法。我想要它向自己发送一条符文信息。
我试图将 runicast 消息发送到“&rimeaddr_node_addr”,但它超时了。
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);
所以,我不能给自己发送符文。请问你能帮帮我吗?