mirror of
https://github.com/g4klx/MMDVMHost.git
synced 2026-04-06 06:53:42 +00:00
Minor rework of JSON creation.
This commit is contained in:
parent
d6fe3f0cac
commit
0ecf2dec39
6 changed files with 147 additions and 109 deletions
|
|
@ -236,15 +236,16 @@ void CAX25Control::decodeJSON(const char* source, const unsigned char* data, uns
|
|||
nlohmann::json json;
|
||||
|
||||
json["timestamp"] = CUtils::createTimestamp();
|
||||
json["source"] = source;
|
||||
|
||||
std::string text;
|
||||
|
||||
bool isDigi;
|
||||
bool more = decodeAddressJSON(data + 7U, text, isDigi);
|
||||
json["source"] = text;
|
||||
json["source_cs"] = text;
|
||||
|
||||
decodeAddressJSON(data + 0U, text, isDigi);
|
||||
json["destination"] = text;
|
||||
json["destination_cs"] = text;
|
||||
|
||||
unsigned int n = 14U;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue