Interface: tos.lib.net.6lowpan.UDPClient
interface UDPClientCommands
command error_t connect(ip6_addr_t *addr, uint16_t port)
command error_t listen(uint16_t port)
command error_t send(uint8_t *buf, uint16_t len)
command error_t sendTo(ip6_addr_t *addr, uint16_t port, uint8_t *buf, uint16_t len)
Events
event void receive(ip6_addr_t *addr, uint16_t port, uint8_t *buf, uint16_t len)
event void sendDone(error_t result, void *buf)
Commands - Details
connect
command error_t connect(ip6_addr_t *addr, uint16_t port)
listen
command error_t listen(uint16_t port)
send
command error_t send(uint8_t *buf, uint16_t len)
sendTo
command error_t sendTo(ip6_addr_t *addr, uint16_t port, uint8_t *buf, uint16_t len)
Events - Details
receive
event void receive(ip6_addr_t *addr, uint16_t port, uint8_t *buf, uint16_t len)
sendDone
event void sendDone(error_t result, void *buf)