Changes between Version 9 and Version 10 of wade/embedded/arduino/example/example_7_1_ethernet_web_admin


Ignore:
Timestamp:
Aug 22, 2010, 3:42:41 PM (14 years ago)
Author:
wade
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • wade/embedded/arduino/example/example_7_1_ethernet_web_admin

    v9 v10  
    88
    99/*
    10  * Web Admin 透過 web service 提供網頁監控功能。透過 GET 送命令取回 http 資料。
     10 * Web Admin will let you control Arduino and get information from web, http request = GET
     11 * you must use W5100 Ethernet model.
    1112 * 接法:
    1213 * digital pin2:DC SWITCH
     
    1718 * analog pin1:CT sersor
    1819 * GET 命令:
    19  *         b=00:第一行傳現在裝置狀態
     20 *         b=00:get all information
    2021 *         b=01:DC on
    2122 *         b=02:DC off
    2223 *         b=03:AC on
    2324 *         b=04:AC off
    24  *         b=05: IP:192.168.1.251
    25  *         b=06: IP:192.168.1.250
     25 *         b=05:change IP:192.168.1.251
     26 *         b=06:change IP:192.168.1.250
    2627 */
    2728
    2829#include <Ethernet.h>
    29 #include <NewSoftSerial.h>
     30//#include <NewSoftSerial.h>
    3031//#include <string.h>
    3132
     
    3637
    3738// set pin 9 as RX
    38 uint8_t ssRX = 6;
     39//uint8_t ssRX = 6;
    3940// set pin 10 as TX
    40 uint8_t ssTX = 7;
     41//uint8_t ssTX = 7;
    4142// enable soft serial nss
    42 NewSoftSerial nss(ssRX, ssTX);
     43//NewSoftSerial nss(ssRX, ssTX);
    4344
    4445// initial
     
    5758  server.begin();
    5859  Serial.begin(9600);
    59   nss.begin(9600);
     60  //nss.begin(9600);
    6061  pinMode(DC_control, OUTPUT);
    6162  pinMode(AC_control, OUTPUT);