Sebastian Vantomme / ESP8266
Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers ESP8266.h Source File

ESP8266.h

00001 
00002 
00003 
00004 /*
00005  * enum for station or softAP moenum mode {AP, STA};
00006  */
00007  enum mode {AP, STA};
00008  
00009 void setPCBaud(int baud);
00010 void setESPBaud(int baud);
00011 
00012 void espInit(void);
00013 
00014 /**
00015  * Sets the mode to STA=1, AP=2 or BOTH=3
00016  * @param  mode The desired mode
00017  */
00018 void setMode(const char* mode);
00019 
00020 /**
00021  * Configure the softAP.
00022  * @param ssid  string parameter, SSID of AP
00023  * @param password  string parameter, length of password: 8 ~ 64 bytes ASCII
00024  * @param channel  channel ID.
00025  * @param encryption  encryption method; WEP is not supported.
00026             ‣ 0: OPEN
00027             ‣ 2: WPA_PSK
00028             ‣ 3: WPA2_PSK
00029             ‣ 4: WPA_WPA2_PSK
00030  */
00031 void confAP(const char* ssid, const char* password, const char* channel, const char* encryption);
00032 
00033 /**
00034  * sets the ip adress of STA or AP
00035  * @param  variable Description text text text.          (3)
00036  * @return Description text text text.
00037  */
00038 void setIP(enum mode m, const char* ip);
00039 
00040 
00041 void getIP(enum mode m);
00042 void getConnSTAs(void);
00043 void SendCMD(void);
00044 void getreply(void);