Skip to content
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

Multiple MQTT client connections. #233

Open
ckapop opened this issue Feb 16, 2023 · 1 comment
Open

Multiple MQTT client connections. #233

ckapop opened this issue Feb 16, 2023 · 1 comment
Labels
type: enhancement New feature or request

Comments

@ckapop
Copy link
Contributor

ckapop commented Feb 16, 2023

Issue description

Is it possible to have more than one client to connect to different servers? I need to publish messages on 2 different brokers. I only see one mqtt.client.server-uri {type: String) configuration variable.

@ckapop
Copy link
Contributor Author

ckapop commented Feb 17, 2023

Perhaps doing something like the http-client does using low level client?
public GithubLowLevelClient(@Client(id = "github") HttpClient httpClient, GithubConfiguration configuration)

or declarative client?

@Client(id = "github") 
@Header(name = USER_AGENT, value = "Micronaut HTTP Client") 
@Header(name = ACCEPT, value = "application/vnd.github.v3+json, application/json") 
public interface GithubApiClient {

    @Get("/repos/${github.organization}/${github.repo}/releases") 
    Publisher<GithubRelease> fetchReleases(); 
}

Could micronaut-mqtt do something similar?

@sdelamo sdelamo added the type: enhancement New feature or request label Jan 8, 2024
@sdelamo sdelamo moved this to Under consideration in Roadmap Top Level Features Jan 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: enhancement New feature or request
Projects
Status: Under consideration
Development

No branches or pull requests

2 participants