Changeset 235 for rtos_arduino/trunk


Ignore:
Timestamp:
May 5, 2016, 1:28:52 AM (8 years ago)
Author:
ertl-honda
Message:

共有設定を別ファイルとした

Location:
rtos_arduino/trunk/examples
Files:
6 edited

Legend:

Unmodified
Added
Removed
  • rtos_arduino/trunk/examples/BlueMix_basic/rca_app.cpp

    r213 r235  
    55#include <ArduinoJson.h>
    66
    7 #define ORGANIZATION    ""              //‘gDID
    8 #define DEVICE_TYPE     ""              //ƒfƒoƒCƒXEƒ^ƒCƒv
    9 #define DEVICE_ID       ""      //ƒfƒoƒCƒXID
    10 #define PASSWORD        ""      //”FØƒg[ƒNƒ“
     7#include "../examples_gdef.h"
    118
    129char serverName[] = ORGANIZATION ".messaging.internetofthings.ibmcloud.com";
     
    1815ESP8266Client wifi_client;
    1916PubSubClient client(serverName, 1883, 0, wifi_client);
    20 
    21 #define STA_SSID       ""
    22 #define STA_PASSWORD   ""
    2317
    2418void MqttConnect()
  • rtos_arduino/trunk/examples/Milkcocoa_NCESIoT/rca_app.cpp

    r227 r235  
    44#include "Client_ESP8266.h"
    55
    6 #define STA_SSID       ""
    7 #define STA_PASSWORD   ""
    8 
    9 #define MILKCOCOA_APP_ID      ""
    10 #define MILKCOCOA_DATASTORE   ""
     6#include "../examples_gdef.h"
    117
    128#define MILKCOCOA_SERVERPORT  1883
  • rtos_arduino/trunk/examples/Milkcocoa_basic/rca_app.cpp

    r213 r235  
    44#include "Client_ESP8266.h"
    55
    6 #define STA_SSID       ""
    7 #define STA_PASSWORD   ""
    8 
    9 #define MILKCOCOA_APP_ID      ""
    10 #define MILKCOCOA_DATASTORE   ""
     6#include "../examples_gdef.h"
    117
    128//#define MILKCOCOA_PUSH
  • rtos_arduino/trunk/examples/ThingSpeak_basic/rca_app.cpp

    r213 r235  
    44#include "ThingSpeak.h"
    55
    6 #define STA_SSID       ""
    7 #define STA_PASSWORD   ""
     6#include "../examples_gdef.h"
    87
    98ESP8266Client wifi_client;
     
    7978}
    8079
    81 unsigned long myChannelNumber =
    82 const char * myWriteAPIKey = "";
     80unsigned long myChannelNumber =THINGSPEAK_CHANNELNUMBER ;
     81const char * myWriteAPIKey = THINGSPEAK_WRITEAPIKEY ;
     82
    8383int cnt1;
    8484int cnt2;
     85
     86#include <math.h>
     87int a;
     88float temperature;
     89int B=3975;                  //B value of the thermistor
     90float resistance;
    8591
    8692void loop() {
  • rtos_arduino/trunk/examples/WifiEcho/rca_app.cpp

    r213 r235  
    22#include "ESP8266.h"
    33
    4 #define STA_SSID       ""
    5 #define STA_PASSWORD   ""
    6 
    7 #define AP_SSID       "M0_AP"
    8 #define AP_PASSWORD   "none"
     4#include "../examples_gdef.h"
    95
    106#define WMODE_STATION
     
    2824        Serial.println(WiFi.getVersion().c_str());
    2925        Serial.print("Supported FW Version:");
    30         Serial.println(ESP8266_SUPPORT_VERSION);
     26        Serial.print(ESP8266_SUPPORT_VERSION);
    3127        while(1);
    3228    } else {
     
    5046    } else {
    5147        Serial.print("Join AP failure\r\n");
     48        while(1);
    5249    }
    5350#else /* !WMODE_STATION */
     
    7168    } else {
    7269        Serial.print("multiple err\r\n");
     70        while(1);
    7371    }
    7472
     
    7775    } else {
    7876        Serial.print("start tcp server err\r\n");
     77        while(1);
    7978    }
    8079
     
    8382    } else {
    8483        Serial.print("set tcp server timout err\r\n");
     84        while(1);
    8585    }
    8686
  • rtos_arduino/trunk/examples/examples_gdef.h

    r234 r235  
    44 * For Wifi
    55 */
    6 #define STA_SSID       ""
    7 #define STA_PASSWORD   ""
     6#define STA_SSID       "0024_MYNET"
     7#define STA_PASSWORD   "yf-19_yf-21_plus"
     8
     9//#define STA_SSID       "RX501NC_0B8C"
     10//#define STA_PASSWORD   "50229567"
     11
     12//#define STA_SSID       "ERTL_GLOBAL"
     13//#define STA_PASSWORD   "ertl__toppers"
    814
    915#define AP_SSID       "M0_AP"
     
    1319 * For Milkcocoa
    1420 */
    15 #define MILKCOCOA_APP_ID      ""
    16 #define MILKCOCOA_DATASTORE   ""
     21#define MILKCOCOA_APP_ID      "uniim5nqwug"
     22#define MILKCOCOA_DATASTORE   "R2CA_DATA"
    1723
    1824/*
     
    2733 * For ThingSpeak
    2834 */
    29 #define THINGSPEAK_CHANNELNUMBER
    30 #define THINGSPEAK_WRITEAPIKEY
     35#define THINGSPEAK_CHANNELNUMBER 103978
     36#define THINGSPEAK_WRITEAPIKEY  "D1G413IIE3QBNWGG"
    3137
    3238#endif /* _WIFI_SETTING_H_ */
Note: See TracChangeset for help on using the changeset viewer.