Nut/OS  4.10.3
API Reference
pppc.c File Reference
#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>
Include dependency graph for pppc.c:

Go to the source code of this file.

Defines

#define PPP_CHAT
#define PPP_USER   "me"
#define PPP_PASS   "secret"

Functions

int main (void)

Define Documentation

#define PPP_CHAT
Value:
/* 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"
Examples:
pppc/pppc.c.

Definition at line 107 of file pppc.c.

#define PPP_USER   "me"
Examples:
pppc/pppc.c.

Definition at line 123 of file pppc.c.

#define PPP_PASS   "secret"
Examples:
pppc/pppc.c.

Definition at line 124 of file pppc.c.


Function Documentation

int main ( void  )

Definition at line 351 of file pppc.c.

References NutSleep(), NutVersionString(), printf, and puts.

Here is the call graph for this function: