Compare commits
3 Commits
3d52c14d53
...
master
Author | SHA1 | Date | |
---|---|---|---|
9e22556d36 | |||
1ac129a027
|
|||
44647d686f |
2
Makefile
2
Makefile
@@ -4,7 +4,7 @@
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
CFLAGS?=-mcpu=cortex-m3 -mthumb -Og -fdata-sections -ffunction-sections -g -gdwarf-2
|
CFLAGS?=-mcpu=cortex-m3 -mthumb -Og -fdata-sections -ffunction-sections -g -gdwarf-2 -Wall -Werror
|
||||||
|
|
||||||
CC=arm-none-eabi-gcc
|
CC=arm-none-eabi-gcc
|
||||||
AR=arm-none-eabi-ar
|
AR=arm-none-eabi-ar
|
||||||
|
@@ -46,7 +46,7 @@ void clientStop(client_t *client) {
|
|||||||
|
|
||||||
if (res != SOCK_BUSY) {
|
if (res != SOCK_BUSY) {
|
||||||
close(client->sockNum);
|
close(client->sockNum);
|
||||||
logMsg("clientStop: disconnect returns 0x%02x, invalid response, ignore it", res);
|
logMsg("clientStop: disconnect returns %d, invalid response, ignore it", res);
|
||||||
} else {
|
} else {
|
||||||
bool successfullyClosed = false;
|
bool successfullyClosed = false;
|
||||||
uint32_t startTime = HAL_GetTick();
|
uint32_t startTime = HAL_GetTick();
|
||||||
|
@@ -22,7 +22,7 @@
|
|||||||
|
|
||||||
// MQTT_MAX_PACKET_SIZE : Maximum packet size. Override with setBufferSize().
|
// MQTT_MAX_PACKET_SIZE : Maximum packet size. Override with setBufferSize().
|
||||||
#ifndef MQTT_MAX_PACKET_SIZE
|
#ifndef MQTT_MAX_PACKET_SIZE
|
||||||
#define MQTT_MAX_PACKET_SIZE 256
|
#define MQTT_MAX_PACKET_SIZE 512
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
// MQTT_KEEPALIVE : keepAlive interval in Seconds. Override with setKeepAlive()
|
// MQTT_KEEPALIVE : keepAlive interval in Seconds. Override with setKeepAlive()
|
||||||
|
Reference in New Issue
Block a user