-
Notifications
You must be signed in to change notification settings - Fork 7
Constructor
Warren Gay edited this page Nov 16, 2015
·
9 revisions
ESP8266::ESP8266(
write_func_t writeb,
read_func_t readb,
poll_func_t rpoll,
idle_func_t idle
)
The constructor requires four callbacks, which perform the following functions:
- Write one byte to UART (write_func_t)
- Read one byte from UART (read_func_t)
- Return true if there is a byte to be read from UART (poll_func_t)
- Idle callback when there is nothing to do (idle_func_t)
ESP8266::~ESP8266()
Currently, the destructor is simply a placeholder.
void ESP8266::clear()
This method clears the object in the same way as the constructor (the constructor invokes it), except that the constructor callbacks are retained. This can be used after a hardware reset has been initiated and prior to calling ESP8266::wait_reset().