Add JSON to the M17 protocol.

This commit is contained in:
Jonathan Naylor
2022-12-29 15:44:00 +00:00
parent 59eccc16ba
commit 5c12bbb7b0
7 changed files with 269 additions and 32 deletions

View File

@@ -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());
}