Skip to content

Commit

Permalink
mqtt: update MQTT_MAX_PACKET_SIZE to fit JSON payload (#1888)
Browse files Browse the repository at this point in the history
  • Loading branch information
mcspr committed Sep 3, 2019
1 parent af18758 commit 9d166f8
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 5 deletions.
2 changes: 1 addition & 1 deletion code/platformio.ini
Expand Up @@ -65,7 +65,7 @@ board_1m = esp01_1m
board_2m = esp_wroom_02
board_4m = esp12e

build_flags = -g -w -DMQTT_MAX_PACKET_SIZE=400 -DNO_GLOBAL_EEPROM ${sysenv.ESPURNA_FLAGS} -DPIO_FRAMEWORK_ARDUINO_LWIP2_HIGHER_BANDWIDTH
build_flags = -g -w -DMQTT_MAX_PACKET_SIZE=1024 -DNO_GLOBAL_EEPROM ${sysenv.ESPURNA_FLAGS} -DPIO_FRAMEWORK_ARDUINO_LWIP2_HIGHER_BANDWIDTH
build_flags_512k = ${common.build_flags} -Wl,-Teagle.flash.512k0m1s.ld
build_flags_1m0m = ${common.build_flags} -Wl,-Teagle.flash.1m0m1s.ld
build_flags_2m1m = ${common.build_flags} -Wl,-Teagle.flash.2m1m4s.ld
Expand Down
2 changes: 1 addition & 1 deletion dist/arduino_ide/2.3.0/boards.local.txt
Expand Up @@ -36,4 +36,4 @@ generic.menu.float_support.disabled.build.float=
generic.menu.float_support.enabled=Enabled
generic.menu.float_support.enabled.build.float=-u _printf_float -u _scanf_float

generic.compiler.cpp.extra_flags=-DNO_GLOBAL_EEPROM -DMQTT_MAX_PACKET_SIZE=400
generic.compiler.cpp.extra_flags=-DNO_GLOBAL_EEPROM -DMQTT_MAX_PACKET_SIZE=1024
2 changes: 1 addition & 1 deletion dist/arduino_ide/latest/boards.local.txt
Expand Up @@ -36,4 +36,4 @@ generic.menu.float_support.disabled.build.float=
generic.menu.float_support.enabled=Enabled
generic.menu.float_support.enabled.build.float=-u _printf_float -u _scanf_float

generic.compiler.cpp.extra_flags=-DNO_GLOBAL_EEPROM -DMQTT_MAX_PACKET_SIZE=400
generic.compiler.cpp.extra_flags=-DNO_GLOBAL_EEPROM -DMQTT_MAX_PACKET_SIZE=1024
10 changes: 8 additions & 2 deletions dist/boards_local_txt.py
Expand Up @@ -110,7 +110,7 @@ def __len__(self):
CORE_VERSIONS = ["2.3.0", "latest"]

EXTRA_FLAGS = [
(".compiler.cpp.extra_flags", "-DNO_GLOBAL_EEPROM -DMQTT_MAX_PACKET_SIZE=400")
(".compiler.cpp.extra_flags", "-DNO_GLOBAL_EEPROM -DMQTT_MAX_PACKET_SIZE=1024")
]


Expand Down Expand Up @@ -167,7 +167,13 @@ def print_versions(args):
if __name__ == "__main__":

parser = argparse.ArgumentParser()
parser.add_argument("-d", "--directory", default="arduino_ide")
parser.add_argument(
"-d",
"--directory",
default=os.path.join(
os.path.dirname(os.path.realpath(__file__)), "arduino_ide"
),
)

subparsers = parser.add_subparsers(title="commands")
parser_versions = subparsers.add_parser("versions", help="list supported versions")
Expand Down

0 comments on commit 9d166f8

Please sign in to comment.