File tree Expand file tree Collapse file tree 4 files changed +5
-11
lines changed
Expand file tree Collapse file tree 4 files changed +5
-11
lines changed Original file line number Diff line number Diff line change 1+ .DS_Store
Original file line number Diff line number Diff 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}
Original file line number Diff line number Diff line change 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
107const char * ssid = <WIFI_SSID>;
118const 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}
Original file line number Diff line number Diff line change 1010const char * ssid = <WIFI_SSID>;
1111const 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"
You can’t perform that action at this time.
0 commit comments