123
Dependencies: MQTTSN
MQTT_server_setting.h@15:8c473836feba, 2019-08-06 (annotated)
- Committer:
- m_ahsan
- Date:
- Tue Aug 06 05:32:43 2019 +0000
- Revision:
- 15:8c473836feba
123
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
m_ahsan | 15:8c473836feba | 1 | #ifndef __MQTT_SERVER_SETTING_H__ |
m_ahsan | 15:8c473836feba | 2 | #define __MQTT_SERVER_SETTING_H__ |
m_ahsan | 15:8c473836feba | 3 | |
m_ahsan | 15:8c473836feba | 4 | #define MQTT_MAX_PAYLOAD_SIZE 700 |
m_ahsan | 15:8c473836feba | 5 | #define MQTT_CLIENT_ID "Sensor011" |
m_ahsan | 15:8c473836feba | 6 | |
m_ahsan | 15:8c473836feba | 7 | //char *buf; |
m_ahsan | 15:8c473836feba | 8 | const char * ssid = "KICS-IOT-DHCP"; |
m_ahsan | 15:8c473836feba | 9 | const char * seckey = "AAAFFFBBBC"; |
m_ahsan | 15:8c473836feba | 10 | bool PUB_REG = false; |
m_ahsan | 15:8c473836feba | 11 | /* Buffer size for a receiving message. */ |
m_ahsan | 15:8c473836feba | 12 | const int MESSAGE_BUFFER_SIZE = 512; |
m_ahsan | 15:8c473836feba | 13 | /* Buffer for a receiving message. */ |
m_ahsan | 15:8c473836feba | 14 | char messageBuffer[MESSAGE_BUFFER_SIZE]; |
m_ahsan | 15:8c473836feba | 15 | |
m_ahsan | 15:8c473836feba | 16 | //const char *buffer = NULL; |
m_ahsan | 15:8c473836feba | 17 | const char* buf; |
m_ahsan | 15:8c473836feba | 18 | //char buf[MESSAGE_BUFFER_SIZE]; |
m_ahsan | 15:8c473836feba | 19 | |
m_ahsan | 15:8c473836feba | 20 | char *MQTT_SERVER_HOST_NAME = "192.168.0.114"; |
m_ahsan | 15:8c473836feba | 21 | short MQTT_Atmpt = 0; |
m_ahsan | 15:8c473836feba | 22 | int PORT = 10000; |
m_ahsan | 15:8c473836feba | 23 | //char *MQTT_CLIENT_ID = "Sensor02"; |
m_ahsan | 15:8c473836feba | 24 | |
m_ahsan | 15:8c473836feba | 25 | char MQTT_TOPIC[40]; |
m_ahsan | 15:8c473836feba | 26 | //const unsigned char* kpsa = "123"; |
m_ahsan | 15:8c473836feba | 27 | //const unsigned char* kpsaID = "bridge"; |
m_ahsan | 15:8c473836feba | 28 | |
m_ahsan | 15:8c473836feba | 29 | #endif /* __MQTT_SERVER_SETTING_H__ */ |