Skip to content

Commit

Permalink
Only using core 1 for jsy and udp sender
Browse files Browse the repository at this point in the history
  • Loading branch information
mathieucarbou committed Nov 11, 2024
1 parent 02911a5 commit f63d5b5
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
10 changes: 7 additions & 3 deletions examples/RemoteUDP/Sender/Sender.ino
Original file line number Diff line number Diff line change
Expand Up @@ -745,11 +745,15 @@ void setup() {
espConnect.begin(hostname.c_str(), ssid.c_str(), MYCILA_ADMIN_PASSWORD);

// start tasks
assert(coreTaskManager.asyncStart(1024 * 4, 1, 1, 100, true)); // NOLINT
assert(jsyTaskManager.asyncStart(1024 * 3, 1, 1, 100, true)); // NOLINT
// assert(coreTaskManager.asyncStart(1024 * 4, 1, 1, 100, true)); // NOLINT
// assert(jsyTaskManager.asyncStart(1024 * 3, 1, 1, 100, true)); // NOLINT

logger.info(TAG, "Started " MYCILA_APP_NAME "!");
}

// Destroy default Arduino async task
void loop() { vTaskDelete(NULL); }
void loop() {
// vTaskDelete(NULL);
coreTaskManager.loop();
jsyTaskManager.loop();
}
1 change: 0 additions & 1 deletion examples/RemoteUDP/Sender/platformio.ini
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,6 @@ lib_ignore =
mathieucarbou/AsyncTCP

build_flags =
-D ARDUINO_LOOP_STACK_SIZE=4096
-D CONFIG_ASYNC_TCP_MAX_ACK_TIME=3000
-D CONFIG_ASYNC_TCP_PRIORITY=10
-D CONFIG_ASYNC_TCP_QUEUE_SIZE=128
Expand Down

0 comments on commit f63d5b5

Please sign in to comment.