Download Here

Transcript
•
•
•
wifi_set_ip_info
struct ip_addr
IP4_ADDR
struct rst_info
Information about the current boot/restart
This structure contains:
•
uint32 reason
•
uint32 exccause
•
uint32 epc1
•
uint32 epc2
•
uint32 epc3
•
uint32 excvaddr
•
uint32 depc
The reason field is an enum with the following values:
•
0
– Default restart – Normal start-up on power up
•
1
– Watch dog timer – Hardware watchdog reset
•
2
– Exception – An exception was detected
•
3
– Software watch dog timer – Software watchdog reset
•
4
– Soft restart
•
5
– Deep sleep wake up
See also:
•
•
Exception handling
system_get_rst_info
struct espconn
This data structure is the representation of a connection between the ESP8266 and a partner. It
contains the "control blocks" and identification information … however it is important to note
that it is not always an opaque piece of data.
•
enum espconn_type type
– The type can be one of
◦
ESPCONN_INVALID
◦
ESPCONN_TCP
– Identifies this connection as being of type TCP.
◦
ESPCONN_UDP
– Identifies this connection as being of type UDP.
Page 319