Skip to content

Commit

Permalink
Fix zephyr ports
Browse files Browse the repository at this point in the history
  • Loading branch information
embhorn committed Oct 24, 2023
1 parent 7bb1bd6 commit b4eb158
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions zephyr/samples/client.c
Original file line number Diff line number Diff line change
Expand Up @@ -33,14 +33,12 @@ int main(void)

mqttCtx.test_mode = 1;

if (getenv("WOLFMQTT_NO_EXTERNAL_BROKER_TESTS")) {
/* Set port as configured in scripts/broker_test/mosquitto.conf */
/* Set port as configured in scripts/broker_test/mosquitto.conf */
#if defined(WOLFMQTT_DEFAULT_TLS) && (WOLFMQTT_DEFAULT_TLS == 1)
mqttCtx.port = 18883;
mqttCtx.port = 18883;
#else
mqttCtx.port = 11883;
mqttCtx.port = 11883;
#endif
}

rc = mqttclient_test(&mqttCtx);

Expand Down

0 comments on commit b4eb158

Please sign in to comment.