mirror of
https://github.com/g4klx/MMDVMHost.git
synced 2026-04-06 15:04:18 +00:00
Add JSON to the M17 protocol.
This commit is contained in:
parent
59eccc16ba
commit
5c12bbb7b0
7 changed files with 269 additions and 32 deletions
7
Log.cpp
7
Log.cpp
|
|
@ -199,3 +199,10 @@ void Log(unsigned int level, const char* fmt, ...)
|
|||
exit(1);
|
||||
}
|
||||
}
|
||||
|
||||
void WriteJSON(const std::string& json)
|
||||
{
|
||||
if (m_mqtt != NULL)
|
||||
m_mqtt->publish("json", json.c_str());
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue