mirror of
https://github.com/g4klx/DMRGateway
synced 2025-12-23 06:45:39 +08:00
Simplify the Host to DMR Gateway protocol.
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (C) 2015,2016,2017,2018 by Jonathan Naylor G4KLX
|
||||
* Copyright (C) 2015,2016,2017,2018,2020 by Jonathan Naylor G4KLX
|
||||
*
|
||||
* This program is free software; you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License as published by
|
||||
@@ -30,7 +30,7 @@
|
||||
class CDMRNetwork
|
||||
{
|
||||
public:
|
||||
CDMRNetwork(const std::string& address, unsigned int port, unsigned int local, unsigned int id, const std::string& password, const std::string& name, const char* version, bool debug);
|
||||
CDMRNetwork(const std::string& address, unsigned int port, unsigned int local, unsigned int id, const std::string& password, const std::string& name, const char* version, bool location, bool debug);
|
||||
~CDMRNetwork();
|
||||
|
||||
void setOptions(const std::string& options);
|
||||
@@ -47,7 +47,7 @@ public:
|
||||
|
||||
bool writeTalkerAlias(const unsigned char* data, unsigned int length);
|
||||
|
||||
bool writeHomePosition(const unsigned char* data, unsigned int length);
|
||||
bool writeHomePosition(float latitude, float longitude);
|
||||
|
||||
bool wantsBeacon();
|
||||
|
||||
@@ -64,6 +64,7 @@ private:
|
||||
std::string m_password;
|
||||
std::string m_name;
|
||||
const char* m_version;
|
||||
bool m_location;
|
||||
bool m_debug;
|
||||
CUDPSocket m_socket;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user