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

Added:publish binary data function #9

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

Conversation

guoyiyan
Copy link

@guoyiyan guoyiyan commented Oct 9, 2016

Add two function definitions:"mqtt_publish_binary" "mqtt_publish_binary_with_qos"
Above two functions can publish the binary data stream.

Add function declaration:
1. int mqtt_publish_binary(mqtt_broker_handle_t* broker, const char* topic, const char* msg, uint32_t msg_len, uint8_t retain);
2. int mqtt_publish_binary_with_qos(mqtt_broker_handle_t* broker, const char* topic, const char* msg, uint32_t msg_len, uint8_t retain,   uint8_t qos, uint16_t* message_id);
Add function definition:
1. int mqtt_publish_binary(mqtt_broker_handle_t* broker, const char* topic, const char* msg, uint32_t msg_len, uint8_t retain) ;
2. int mqtt_publish_binary_with_qos(mqtt_broker_handle_t* broker, const char* topic, const char* msg, uint32_t msg_len, uint8_t retain, uint8_t qos, uint16_t* message_id);
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.

1 participant