MySensors Library & Examples
2.3.2-62-ge298769
|
Definition at line 245 of file EthernetLink.h.
Public Member Functions | |
void | init () |
int16_t | find_remote_node (uint8_t id) |
int16_t | read_bytes (TCPHelperClient &client, uint8_t *contents, uint16_t length, uint16_t timeout_ms=2000) |
uint16_t | receive (TCPHelperClient &client, bool wait) |
bool | connect (uint8_t id) |
void | stop (TCPHelperClient &client) |
void | disconnect_in () |
void | disconnect_out () |
bool | accept () |
void | disconnect_out_if_needed (uint16_t result) |
bool | got_receive_timeout () |
bool | disconnect_in_if_needed () |
uint16_t | send (TCPHelperClient &client, uint8_t id, const uint8_t *packet, uint16_t length) |
bool | read_until_header (TCPHelperClient &client, uint32_t header) |
EthernetLink (uint8_t id) | |
int16_t | add_node (uint8_t remote_id, const uint8_t remote_ip[], uint16_t port_number=ETCP_DEFAULT_PORT) |
void | start_listening (uint16_t port_number=ETCP_DEFAULT_PORT) |
void | keep_connection (bool keep) |
void | request_ack (bool request_ack) |
uint32_t | get_connection_time () const |
uint32_t | get_connection_count () const |
uint16_t | send_with_duration (uint8_t id, const uint8_t *packet, uint16_t length, uint32_t duration_us) |
uint16_t | poll_receive (uint8_t remote_id) |
uint8_t | get_id () const |
uint16_t | receive () |
uint16_t | receive (uint32_t duration_us) |
uint16_t | send (uint8_t id, const uint8_t *packet, uint16_t length, uint32_t=0) |
uint8_t | device_id () |
uint8_t | acquire_id () |
void | set_error (link_error e) |
void | set_id (uint8_t id) |
void | set_receiver (link_receiver r, void *callback_object) |
void | update () |