STM32F103C8T6,ONENET,ESP8266
Dependents: STM32F103C8T6_OneNet_IoT
wifi_example.h
- Committer:
- dadangjia
- Date:
- 2019-11-07
- Revision:
- 1:8512a7d76959
- Parent:
- 0:cbe8a0553d45
File content as of revision 1:8512a7d76959:
#ifndef WIFI_EXAMPLE_H_H #define WIFI_EXAMPLE_H_H #include "mbed.h" #include "Common.h" #include "EdpKit.h" #include "cJSON.h" #include "ESP8266.h" #include <time.h> #include <stdio.h> #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]; 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); #endif