alert->ruleId = (uint8_t) 1;
    alert->timestamp = (uint8_t) 2;
    alert->eventId = (uint8_t) 3;

    printf("EventID: %u\n", alert->eventId);

    inet_pton6(EDGE_ROUTER_ADDR, &ER_addr.sin6_addr);
    ER_addr.sin6_port = htons(EDGE_ROUTER_PORT);

    err = call UDP.sendto(&ER_addr, alert, sizeof(Alert_t));
    printf("\nerror_t: %u\n", err);

I can see the first printf showing the value 3, but the second printf with
the error_t value doesn't show up. I also noticed that putting the code in
the task isn't executed (I see no printfs that are in the task
implementation, not even the first one showing the 3 value). So the code
right now is inside the event, which isn't the best practice I assume. 



--
View this message in context: 
http://tinyos-help.10906.n7.nabble.com/Problem-with-UDP-sendto-tp23589p23598.html
Sent from the TinyOS - Help mailing list archive at Nabble.com.
_______________________________________________
Tinyos-help mailing list
[email protected]
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

Reply via email to