Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependents: 8-0_OneNet_IoT_demo
wifi_example.h
00001 #ifndef WIFI_EXAMPLE_H_H 00002 #define WIFI_EXAMPLE_H_H 00003 00004 #include "mbed.h" 00005 #include "Common.h" 00006 #include "EdpKit.h" 00007 #include "cJSON.h" 00008 #include "ESP8266.h" 00009 00010 #include <time.h> 00011 #include <stdio.h> 00012 #include <stdlib.h> 00013 #include <string.h> 00014 00015 #define DEVICEID "5116906" 00016 #define APIKEY "E75QrwTpTp5hmWCxljc0Seg1KS0=" 00017 #define APNAME "AnChuangKongJian" 00018 #define APPASSWD "jiasuqi@0111" 00019 #define TCPNUM 0 00020 #define TCPADD "jjfaedp.hedevice.com" 00021 #define TCPPORT 876 00022 00023 #define MAX_SEND_BUF_LEN 1024 00024 00025 extern EdpPacket* send_pack; 00026 extern char send_buf[MAX_SEND_BUF_LEN]; 00027 extern char read_buf[MAX_SEND_BUF_LEN]; 00028 00029 extern void connectInit(void); 00030 extern void sendJsonDat(char* dataName, float data); 00031 extern void sendData(char* dataName, float data); 00032 extern void devLink(const char* devid, const char* auth_key); 00033 extern int checkSocketStatus(void); 00034 00035 00036 #endif 00037
Generated on Wed Jul 13 2022 20:05:22 by
 1.7.2
 1.7.2