Changeset 235 for rtos_arduino
- Timestamp:
- May 5, 2016, 1:28:52 AM (8 years ago)
- Location:
- rtos_arduino/trunk/examples
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
rtos_arduino/trunk/examples/BlueMix_basic/rca_app.cpp
r213 r235 5 5 #include <ArduinoJson.h> 6 6 7 #define ORGANIZATION "" //gDID 8 #define DEVICE_TYPE "" //foCXE^Cv 9 #define DEVICE_ID "" //foCXID 10 #define PASSWORD "" //FØg[N 7 #include "../examples_gdef.h" 11 8 12 9 char serverName[] = ORGANIZATION ".messaging.internetofthings.ibmcloud.com"; … … 18 15 ESP8266Client wifi_client; 19 16 PubSubClient client(serverName, 1883, 0, wifi_client); 20 21 #define STA_SSID ""22 #define STA_PASSWORD ""23 17 24 18 void MqttConnect() -
rtos_arduino/trunk/examples/Milkcocoa_NCESIoT/rca_app.cpp
r227 r235 4 4 #include "Client_ESP8266.h" 5 5 6 #define STA_SSID "" 7 #define STA_PASSWORD "" 8 9 #define MILKCOCOA_APP_ID "" 10 #define MILKCOCOA_DATASTORE "" 6 #include "../examples_gdef.h" 11 7 12 8 #define MILKCOCOA_SERVERPORT 1883 -
rtos_arduino/trunk/examples/Milkcocoa_basic/rca_app.cpp
r213 r235 4 4 #include "Client_ESP8266.h" 5 5 6 #define STA_SSID "" 7 #define STA_PASSWORD "" 8 9 #define MILKCOCOA_APP_ID "" 10 #define MILKCOCOA_DATASTORE "" 6 #include "../examples_gdef.h" 11 7 12 8 //#define MILKCOCOA_PUSH -
rtos_arduino/trunk/examples/ThingSpeak_basic/rca_app.cpp
r213 r235 4 4 #include "ThingSpeak.h" 5 5 6 #define STA_SSID "" 7 #define STA_PASSWORD "" 6 #include "../examples_gdef.h" 8 7 9 8 ESP8266Client wifi_client; … … 79 78 } 80 79 81 unsigned long myChannelNumber = 82 const char * myWriteAPIKey = ""; 80 unsigned long myChannelNumber =THINGSPEAK_CHANNELNUMBER ; 81 const char * myWriteAPIKey = THINGSPEAK_WRITEAPIKEY ; 82 83 83 int cnt1; 84 84 int cnt2; 85 86 #include <math.h> 87 int a; 88 float temperature; 89 int B=3975; //B value of the thermistor 90 float resistance; 85 91 86 92 void loop() { -
rtos_arduino/trunk/examples/WifiEcho/rca_app.cpp
r213 r235 2 2 #include "ESP8266.h" 3 3 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" 9 5 10 6 #define WMODE_STATION … … 28 24 Serial.println(WiFi.getVersion().c_str()); 29 25 Serial.print("Supported FW Version:"); 30 Serial.print ln(ESP8266_SUPPORT_VERSION);26 Serial.print(ESP8266_SUPPORT_VERSION); 31 27 while(1); 32 28 } else { … … 50 46 } else { 51 47 Serial.print("Join AP failure\r\n"); 48 while(1); 52 49 } 53 50 #else /* !WMODE_STATION */ … … 71 68 } else { 72 69 Serial.print("multiple err\r\n"); 70 while(1); 73 71 } 74 72 … … 77 75 } else { 78 76 Serial.print("start tcp server err\r\n"); 77 while(1); 79 78 } 80 79 … … 83 82 } else { 84 83 Serial.print("set tcp server timout err\r\n"); 84 while(1); 85 85 } 86 86 -
rtos_arduino/trunk/examples/examples_gdef.h
r234 r235 4 4 * For Wifi 5 5 */ 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" 8 14 9 15 #define AP_SSID "M0_AP" … … 13 19 * For Milkcocoa 14 20 */ 15 #define MILKCOCOA_APP_ID " "16 #define MILKCOCOA_DATASTORE " "21 #define MILKCOCOA_APP_ID "uniim5nqwug" 22 #define MILKCOCOA_DATASTORE "R2CA_DATA" 17 23 18 24 /* … … 27 33 * For ThingSpeak 28 34 */ 29 #define THINGSPEAK_CHANNELNUMBER 30 #define THINGSPEAK_WRITEAPIKEY 35 #define THINGSPEAK_CHANNELNUMBER 103978 36 #define THINGSPEAK_WRITEAPIKEY "D1G413IIE3QBNWGG" 31 37 32 38 #endif /* _WIFI_SETTING_H_ */
Note:
See TracChangeset
for help on using the changeset viewer.