| void begin() | startup |
| void getConfig() | reads configuration |
| uint8_t scanNets() | detects wifi networks |
| char* getNetScanned(uint8_t num) | returns string with net info |
| char* getSSIDBestOpen(uint8_t totnets) | returns name of best open AP |
| char* existSSID(char *name) | returns data of name(AP) or null |
| void setNetMode(uint8_t mode) | sets infrastucture/ad-hoc |
| uint8_t ConnectOpen(char *ssid) | sets&connects open WIFI |
| uint8_t ConnectWPAwithPSW(char *ssid, char *psw) | sets&connects WPA |
| uint8_t ConnectWPAandGetKey(char *ssid, char *psw, uint8_t key[32]) | sets&connects and code key |
| uint8_t ConnectWPAwithKey(char *ssid,uint8_t key[32]) | sets&connects WPA with key |
| uint8_t ConnectWPAandGetKeyEE(char *ssid, char *psw,int EEadd) | version with key stored on EEPROM (from EEadd) |
| uint8_t ConnectWPAwithKeyEE(char *ssid,int EEadd) | version with key stored on EEPROM (from EEadd) |
| void storeKeyOnEEPROM(uint8_t key[32],int EEadd) | stores key on EEPROM (33 bytes; 1 flag+ 32 key)(from EEadd) |
| bool isKeyInEEPROM(int EEadd) | checks flag |
|
void ConnSetOpen(char *ssid) void ConnSetWPA(char *ssid, uint8_t lssid, char *psw, uint8_t lpsw) void ConnSetWPA(char *ssid, char *psw) uint8_t Connect() | outdated two times connection (setting and connection) |
| uint8_t Disconnect() | disconnects |
| uint8_t ping(char *ipremote) | pings |
| uint8_t openSockTCP(char *ipremote,uint16_t port) | opens socket to |
| uint8_t openServerTCP(uint16_t port) | opens server-socket |
| uint8_t pollingAccept(uint8_t sock) | listens for incoming link |
| uint16_t writeData(uint8_t sk,uint8_t *buffer,uint16_t lbuff) uint16_t writeData(uint8_t sk, char *buffer) uint16_t writeDataLn(uint8_t sk, char *buffer) uint16_t writeDataPM(uint8_t sk,prog_char *buffer,uint16_t lbuff) uint16_t writeDataPM(uint8_t sk, prog_char *buffer) uint16_t writeDataLnPM(uint8_t sk, prog_char *buffer) | writes data writes data from PROGMEM |
| uint16_t readData(uint8_t sk,uint8_t *buffer,uint16_t lbuff) char* readDataLn(uint8_t sk) |
reads data reads record |
| void closeSock(uint8_t sk) | closes socket |
| void getMAC(char mac[18]) | returns string MAC |
| void getName(char name[8]) | returns shield name |
| void setIP(char *ip) | sets IP |
| void getIP(char ip[16]) | returns string IP |
| void setIPdhcp() | sets mode dhcp |
| void setNetMask(char *mask) | sets mask address |
| void getNetMask(char mask[16]) | returns string mask address |
| void setGateway(char *gatw) | sets gateway address |
| void getGateway(char gatw[16]) | returns string gateway address |
| void getRemoteIP(char remoteIP[16]) | returns string remote IP |
| void resetMCW() | resets MCW |
| void setLed(int led,int state) | sets LEDs |
| void setPowerOff() | switches off radio |
| void setSavePower(int millis) | sets radio in PSPOLL |
| void setFullPower() | exits from save mode |
| char* getRequest(int socket,int nres,WEBRES rs[]) char* getRequest(int socket,int nres,WEBRES rs[],char *key) |
gets request from a client version vith authentication |
| char* codeWebKey(char user[],char psw[]) | gets key coding username and password |
| void sendResponse(int socket,prog_char *page) | sends response to a client |
| void sendDynResponse(int sk,prog_char *page,int npar,char *param[]) | sends dynamic response |
| void sendRequestGET(int socket,char* resource) void sendRequestGET(int sk,char* headers[],int nh,char* resource) |
sends GET request to a server version with headers array |
| void sendRequestPOST(int sk,char* resource,char* data) void sendRequestPOST(int sk,char* headers[],int nh,char* resource,char* data) |
sends POST request to a server version with header array |
| void sendRequestPUT(int socket,char* resource) void sendRequestPUT(int sk,char* headers[],int nh,char* resource) |
sends PUT request to a server version with headers array |
| void sendRequestDELETE(int sk,char* resource,char* data) void sendRequestDELETE(int sk,char* headers[],int nh,char* resource,char* data) |
sends DELETE request to a server version with header array |
| char* getResponse(int socket) | gets response from server |
| unsigned int getResponse(int socket, uint8_t rbuff[], int rbufflen) | gets response from server using a user buffer |
| unsigned int getNextResponseBuffer(int socket, uint8_t rbuff[], int rbufflen) | gets next data from response buffer |
| char* getResponseMessage() | gets response protocol message |
| char* getParameter(char *query,int qlen, char *name) | gets parameter |
| void addParameter(char *query, int querylen,char *name, char *value) | adds parameter |
| void respOKempty(int sk) | just an ACK |
| void respERR(int sk) | response 500 |
| void respNOK(int sk) | response 404 |
| void respNoAuth(int sk) | response 401 |
| typedef WEBRES | |
| WEBRES.name | char pointer to the URI name |
| WEBRES.fun | name of callback function (pointer to function) |
Reference Home