Page 6 of 6
Complete Listing 
#include <stdio.h>#include <unistd.h> #include <time.h>#define blocksize 255int sfd;int initWiFi();/*ATWiFi(); startServerWiFi();
int initWiFi() { sfd = open("/dev/serial0", O_RDWR | O_NOCTTY); cfsetspeed(&options, B115200); tcsetattr(sfd, TCSANOW, &options);int ATWiFi() {dprintf(sfd, "AT\r\n");}int getVersionWiFi() {int resetWiFi() { dprintf(sfd, "AT+CWLAP\r\n");int connectWiFi(char ssid[], char pass[]) {int getIPWiFi() {int getWebPageWiFi(char URL[], char page[]) {int startServerWiFi() { char data[] = "HTTP/1.0 200 OK\r\n for (;;) {  char *b = strstr(buf, "+IPD"); }
 
  
 
Related Articles 
Serial C And The Raspberry Pi 
C Sockets - No Need For A Web Server! 
  
  
To be informed about new articles on I Programmer,  sign up for our  weekly newsletter , subscribe to the  RSS feed  and follow us on,  Twitter,   Facebook ,  Google+  or  Linkedin . 
 
 
Comments 
Make a Comment or View Existing Comments Using Disqus  
or email your comment to: comments@i-programmer.info