#include <cfg/ahdlc.h>
#include <dev/board.h>
#include <dev/ahdlcavr.h>
#include <dev/ppp.h>
#include <dev/chat.h>
#include <sys/version.h>
#include <sys/timer.h>
#include <arpa/inet.h>
#include <netdb.h>
#include <net/if_var.h>
#include <net/route.h>
#include <pro/dhcp.h>
#include <pro/sntp.h>
#include <pro/rfctime.h>
#include <stdlib.h>
#include <string.h>
#include <stdio.h>
#include <io.h>
#include <fcntl.h>
#include <time.h>
Defines | |
#define | PPP_CHAT |
#define | PPP_USER "me" |
#define | PPP_PASS "secret" |
Functions | |
int | main (void) |
#define PPP_CHAT |
/* Wait up to 20 seconds for any response. */ \ "TIMEOUT 20" \ /* Expect nothing at the beginning. */ \ " ''" \ /* Send simple AT command to check the modem. */ \ " AT OK" \ /* Define PDP context, expecting 'OK'. */ \ " AT+CGDCONT=1,\"IP\",\"internet.t-mobile\" OK" \ /* Dial and wait for 'CONNECT'. */ \ " ATD*99***1# CONNECT"
#define PPP_USER "me" |
#define PPP_PASS "secret" |
int main | ( | void | ) |
References NutSleep(), NutVersionString(), printf, and puts.