11

Revision:
2:a327e877a94c
Parent:
1:8512a7d76959
Child:
3:53203df77c77
--- a/wifi_example.h	Thu Nov 07 23:56:29 2019 +0000
+++ b/wifi_example.h	Tue Mar 01 08:50:07 2022 +0000
@@ -2,8 +2,6 @@
 #define WIFI_EXAMPLE_H_H
 
 #include "mbed.h"
-#include "Common.h"
-#include "EdpKit.h"
 #include "cJSON.h"
 #include "ESP8266.h"
 
@@ -12,25 +10,18 @@
 #include <stdlib.h>
 #include <string.h>
 
-#define     DEVICEID   "518299613"
-#define     APIKEY     "D1cJ=yPG0qAHmWd3G7cNivNrj2w="
-#define     APNAME     "OrayBox-4DBE"
-#define     APPASSWD   "zhuxiweiyang"
-#define     TCPNUM     0
-#define     TCPADD     "jjfaedp.hedevice.com"
-#define     TCPPORT    876
-
-#define     MAX_SEND_BUF_LEN  1024
 
-extern      EdpPacket* send_pack;
-extern      char send_buf[MAX_SEND_BUF_LEN];
-extern      char read_buf[MAX_SEND_BUF_LEN];
+#define     APNAME     "prc1"
+#define     APPASSWD   "Prc123456"
+#define     TCPNUM     4
+#define     TCPADD     "127.0.0.1"
+#define     TCPPORT    8585
 
-extern      void connectInit(void);
-extern      void sendJsonDat(char* dataName, float data);
-extern      void sendData(char* dataName, float data);
-extern      void devLink(const char* devid, const char* auth_key);
-extern      int checkSocketStatus(void);
+
+
+extern void connectInit(void);
+
+extern ESP8266 wifi;
 
 
 #endif