Skip to content

Commit aefa9cc

Browse files
committed
update sample files
1 parent 06ba895 commit aefa9cc

File tree

4 files changed

+5
-11
lines changed

4 files changed

+5
-11
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
.DS_Store

README.md

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -88,8 +88,6 @@ void setup() {
8888
Serial.println("IP address: ");
8989
Serial.println(WiFi.localIP());
9090

91-
//uncomment the line below if you want to reset token -->
92-
//microgear.resetToken();
9391
microgear.init(KEY,SECRET,ALIAS);
9492
microgear.connect(APPID);
9593
}

examples/Basic/Basic.ino

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,13 @@
1-
/* NETPIE ESP8266 secure microgear connection sample */
2-
/* It differs from the normal connection by 2 stpes */
3-
/* 1. Declare a client as WiFiClientSecure instead of WiFiClient. */
4-
/* 2. Call microgear.useTLS(true); */
5-
/* More information visit : https://netpie.io */
1+
/* NETPIE ESP8266 basic sample */
2+
/* More information visit : https://netpie.io */
63

74
#include <ESP8266WiFi.h>
85
#include <MicroGear.h>
96

107
const char* ssid = <WIFI_SSID>;
118
const char* password = <WIFI_KEY>;
129

13-
#define APPID <APPID>
10+
#define APPID <APPID>
1411
#define KEY <APPKEY>
1512
#define SECRET <APPSECRET>
1613
#define ALIAS "esp8266"
@@ -69,8 +66,6 @@ void setup() {
6966
Serial.println("IP address: ");
7067
Serial.println(WiFi.localIP());
7168

72-
//uncomment the line below if you want to reset token -->
73-
//microgear.resetToken();
7469
microgear.init(KEY,SECRET,ALIAS);
7570
microgear.connect(APPID);
7671
}

examples/SecureConnect/SecureConnect.ino

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
const char* ssid = <WIFI_SSID>;
1111
const char* password = <WIFI_KEY>;
1212

13-
#define APPID <APPID>
13+
#define APPID <APPID>
1414
#define KEY <APPKEY>
1515
#define SECRET <APPSECRET>
1616
#define ALIAS "esp8266tls"

0 commit comments

Comments
 (0)