Skip to content

Added:publish binary data function - #9

Open
guoyiyan wants to merge 2 commits into
menudoproblema:masterfrom
guoyiyan:master
Open

guoyiyan wants to merge 2 commits into
menudoproblema:masterfrom
guoyiyan:master

Conversation

@guoyiyan

@guoyiyan guoyiyan commented Oct 9, 2016

Copy link
Copy Markdown

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