MQTT parameters tweak
This commit is contained in:
@@ -86,6 +86,7 @@ int connectToIrextIoT() {
|
||||
g_mqtt_server.c_str(), g_mqtt_port,
|
||||
g_mqtt_client_id.c_str(), g_mqtt_user_name.c_str(), g_mqtt_password.length());
|
||||
|
||||
mqtt_client.setBufferSize(1024);
|
||||
mqtt_client.setServer(g_mqtt_server.c_str(), g_mqtt_port);
|
||||
mqtt_client.setCallback(irisIrextIoTCallback);
|
||||
conn_ret = connectToMQTTBroker();
|
||||
@@ -119,7 +120,9 @@ void* getSession() {
|
||||
}
|
||||
|
||||
void checkIrextIoT() {
|
||||
sendIrisKitHeartBeat();
|
||||
if (mqtt_client.connected()) {
|
||||
sendIrisKitHeartBeat();
|
||||
}
|
||||
}
|
||||
|
||||
static int connectToMQTTBroker() {
|
||||
|
||||
Reference in New Issue
Block a user