19#ifndef ARDUINO_E12_SPEC_H
20#define ARDUINO_E12_SPEC_H
27using namespace arduino;
66 virtual int begin(
void* bus, uint8_t e12_addr = 0);
123 virtual int sleep(uint32_t ms,
void* data);
struct e12_event e12_event_t
Structure to hold event data.
Class to handle e12 protocol on Arduino.
Definition arduino_e12_protocol.h:40
virtual int begin(void *bus, uint8_t e12_addr=0)
Initialize the e12 device.
Definition arduino_e12_protocol.cpp:15
virtual uint32_t get_time_ms()
Get the current time in milliseconds.
Definition arduino_e12_protocol.cpp:40
virtual int sleep(uint32_t ms, void *data)
Put the device to sleep.
Definition arduino_e12_protocol.cpp:57
virtual int set_node_auth_credentials(e12_auth_data_t *auth)
Set node authentication credentials.
Definition arduino_e12_protocol.cpp:42
void e12_run()
Run the e12 protocol.
Definition arduino_e12_protocol.cpp:131
int close()
Close the e12 device.
Definition arduino_e12_protocol.cpp:35
virtual e12_log_evt_t * get_log_evt()
Get the log event.
Definition arduino_e12_protocol.cpp:137
~e12_arduino()
Destructor for e12_arduino.
Definition arduino_e12_protocol.cpp:13
virtual int on_wakeup()
Handle wakeup event.
Definition arduino_e12_protocol.cpp:48
virtual e12_packet_t * read()
Read a packet from the e12 device.
Definition arduino_e12_protocol.cpp:108
virtual int send(e12_packet_t *buf, bool retry=true)
Send a packet to the e12 device.
Definition arduino_e12_protocol.cpp:68
This class represents the base class for the e12 protocol.
Definition e12_protocol.h:403
e12_auth_data_t
Definition e12_protocol.h:225
#define E12_MAX_LOG_BUFFERS
Definition e12_protocol.h:143
e12_log_evt_t
Definition e12_protocol.h:174
e12_packet_t
Definition e12_protocol.h:357
Structure to hold event data.
Definition arduino_e12_protocol.h:33
void * data
Definition arduino_e12_protocol.h:34