Skip to content

Add port for NETX use #427

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

JacobBarthelmeh
Copy link
Contributor

Adds example port for NETX use and adds the macro EXTERNAL_MQTT_TLS_CALLBACK for compiling out the example TLS callback function.

@JacobBarthelmeh JacobBarthelmeh requested a review from Copilot May 20, 2025 16:18
@JacobBarthelmeh JacobBarthelmeh self-assigned this May 20, 2025
Copy link

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This pull request adds support for NETX by introducing NETX-specific macros, new fields in the SocketContext, and backend functions for handling socket operations via NETX. It also adds conditional compilation to allow external MQTT TLS callback implementations.

  • Added NETX configuration and macro definitions in mqttport.h.
  • Extended SocketContext with NETX fields and implemented NETX backend functions in mqttnet.c.
  • Adjusted compilation conditionals for MQTT TLS in mqttexample.h and mqttexample.c.

Reviewed Changes

Copilot reviewed 5 out of 5 changed files in this pull request and generated 2 comments.

Show a summary per file
File Description
examples/mqttport.h Added NETX-specific include and macro definitions.
examples/mqttnet.h Extended SocketContext with NETX-related members.
examples/mqttnet.c Introduced NETX backend functions (disconnect, connect, write, read) and adjusted socket initialization.
examples/mqttexample.h Added conditional exclusion based on EXTERNAL_MQTT_TLS_CALLBACK.
examples/mqttexample.c Modified TLS callback conditional compilation.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants