Removed duplicate define
This commit is contained in:
@@ -19,7 +19,6 @@
|
|||||||
#define ATTEMPT_RECONNECT_AMOUNT 50
|
#define ATTEMPT_RECONNECT_AMOUNT 50
|
||||||
#define PUBLISH_QOS 2
|
#define PUBLISH_QOS 2
|
||||||
#define PUBLISH_RETAIN 1
|
#define PUBLISH_RETAIN 1
|
||||||
#define MQTT_SERVER_PORT 1883
|
|
||||||
#define PRINT_XPOS 50
|
#define PRINT_XPOS 50
|
||||||
#define PRINT_YPOS 50
|
#define PRINT_YPOS 50
|
||||||
#define MAX_FILES 20
|
#define MAX_FILES 20
|
||||||
@@ -252,8 +251,7 @@ static void mosquitto_connect(mqtt_client_t* client) {
|
|||||||
ci.client_id = "STM32";
|
ci.client_id = "STM32";
|
||||||
ip_addr_t server_ip;
|
ip_addr_t server_ip;
|
||||||
IP4_ADDR(&server_ip, SERVER_IP4_A, SERVER_IP4_B, SERVER_IP4_C, SERVER_IP4_D);
|
IP4_ADDR(&server_ip, SERVER_IP4_A, SERVER_IP4_B, SERVER_IP4_C, SERVER_IP4_D);
|
||||||
uint16_t server_port = SERVER_PORT;
|
err = mqtt_client_connect(client, &server_ip, SERVER_PORT, mqtt_connection_cb, 0, &ci);
|
||||||
err = mqtt_client_connect(client, &server_ip, server_port, mqtt_connection_cb, 0, &ci);
|
|
||||||
if (err != ERR_OK) {
|
if (err != ERR_OK) {
|
||||||
LOG_DEBUG(TAG, "mqtt_connect return %d", err);
|
LOG_DEBUG(TAG, "mqtt_connect return %d", err);
|
||||||
return;
|
return;
|
||||||
|
|||||||
Reference in New Issue
Block a user