mirror of
https://github.com/g4klx/MMDVMHost.git
synced 2026-04-07 15:34:04 +00:00
Merge branch 'master' into mqtt
This commit is contained in:
commit
052af9ce93
12 changed files with 1249 additions and 313 deletions
|
|
@ -84,14 +84,14 @@ bool CMQTTConnection::publish(const char* topic, const char* text)
|
|||
assert(topic != NULL);
|
||||
assert(text != NULL);
|
||||
|
||||
return publish(topic, (unsigned char*)text, ::strlen(text));
|
||||
return publish(topic, (unsigned char*)text, (unsigned int)::strlen(text));
|
||||
}
|
||||
|
||||
bool CMQTTConnection::publish(const char* topic, const std::string& text)
|
||||
{
|
||||
assert(topic != NULL);
|
||||
|
||||
return publish(topic, (unsigned char*)text.c_str(), text.size());
|
||||
return publish(topic, (unsigned char*)text.c_str(), (unsigned int)text.size());
|
||||
}
|
||||
|
||||
bool CMQTTConnection::publish(const char* topic, const unsigned char* data, unsigned int len)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue