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

how to set remote server addr and port when use mqtt_client #55

Closed
wuwx opened this issue Oct 26, 2016 · 1 comment
Closed

how to set remote server addr and port when use mqtt_client #55

wuwx opened this issue Oct 26, 2016 · 1 comment

Comments

@wuwx
Copy link
Contributor

wuwx commented Oct 26, 2016

simba project has mqtt_client
in path: src/inet/mqtt_client.c
i read test code try understand how to use it
but i not found how to set remote server addr and port

@eerimoq
Copy link
Owner

eerimoq commented Oct 26, 2016

Create a TCP socket and pass a reference of it as chout_p and chin_p in mqtt_client_init().

https://github.com/eerimoq/simba/blob/master/src/inet/mqtt_client.h#L105-L126

Just for you information, the MQTT client module has only been tested by the unit test. It has not been tested with a real MQTT broker. Will be intresting to find out if it works in a real use case. If there is a problem I can fix it. I should write an MQTT example application that communicates with a real broker.

@eerimoq eerimoq closed this as completed Nov 27, 2016
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

No branches or pull requests

2 participants