v1
Dependencies: MQTTSN mbed-http
MQTT_server_setting.h
00001 #ifndef __MQTT_SERVER_SETTING_H__ 00002 #define __MQTT_SERVER_SETTING_H__ 00003 00004 #define MQTT_MAX_PAYLOAD_SIZE 700 00005 #define MQTT_CLIENT_ID "Sensor02" 00006 00007 //char *buf; 00008 const char * ssid = "KICS-IOT-DHCP"; 00009 const char * seckey = "AAAFFFBBBC"; 00010 bool PUB_REG = false; 00011 /* Buffer size for a receiving message. */ 00012 const int MESSAGE_BUFFER_SIZE = 512; 00013 /* Buffer for a receiving message. */ 00014 char messageBuffer[MESSAGE_BUFFER_SIZE]; 00015 00016 const char *buffer = NULL; 00017 00018 char buf[MESSAGE_BUFFER_SIZE]; 00019 00020 char *MQTT_SERVER_HOST_NAME = "192.168.0.114"; 00021 short MQTT_Atmpt = 0; 00022 int PORT = 10000; 00023 //const char MQTT_SERVER_HOST_NAME[] = "iot.eclipse.org"; 00024 //char *MQTT_CLIENT_ID = "Sensor02"; 00025 00026 char MQTT_TOPIC[40]; 00027 //const unsigned char* kpsa = "123"; 00028 //const unsigned char* kpsaID = "bridge"; 00029 00030 #endif /* __MQTT_SERVER_SETTING_H__ */
Generated on Thu Jul 14 2022 08:11:13 by
1.7.2