123
Dependencies: MQTTSN
Diff: MQTT_server_setting.h
- Revision:
- 15:8c473836feba
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/MQTT_server_setting.h Tue Aug 06 05:32:43 2019 +0000 @@ -0,0 +1,29 @@ +#ifndef __MQTT_SERVER_SETTING_H__ +#define __MQTT_SERVER_SETTING_H__ + +#define MQTT_MAX_PAYLOAD_SIZE 700 +#define MQTT_CLIENT_ID "Sensor011" + +//char *buf; +const char * ssid = "KICS-IOT-DHCP"; +const char * seckey = "AAAFFFBBBC"; +bool PUB_REG = false; +/* Buffer size for a receiving message. */ +const int MESSAGE_BUFFER_SIZE = 512; +/* Buffer for a receiving message. */ +char messageBuffer[MESSAGE_BUFFER_SIZE]; + +//const char *buffer = NULL; +const char* buf; +//char buf[MESSAGE_BUFFER_SIZE]; + +char *MQTT_SERVER_HOST_NAME = "192.168.0.114"; +short MQTT_Atmpt = 0; +int PORT = 10000; +//char *MQTT_CLIENT_ID = "Sensor02"; + +char MQTT_TOPIC[40]; +//const unsigned char* kpsa = "123"; +//const unsigned char* kpsaID = "bridge"; + +#endif /* __MQTT_SERVER_SETTING_H__ */