OpenCPN Partial API docs
CommDriverSignalKNet Class Reference
Inheritance diagram for CommDriverSignalKNet:
CommDriverSignalK AbstractCommDriver

Public Member Functions

 CommDriverSignalKNet (const ConnectionParams *params, DriverListener &l)
 
void Open ()
 
void Close ()
 
void SetThreadRunning (bool active)
 
void SetThreadRunFlag (int run)
 
void ResetWatchdog ()
 
void SetWatchdog (int n)
 
void Activate () override
 Register driver and possibly do other post-ctor steps.
 
void handle_SK_sentence (CommDriverSignalKNetEvent &event)
 
void handleUpdate (const rapidjson::Value &update)
 
void updateItem (const rapidjson::Value &item, wxString &sfixtime)
 
void OpenWebSocket ()
 
void CloseWebSocket ()
 
bool IsThreadRunning ()
 
- Public Member Functions inherited from CommDriverSignalK
 CommDriverSignalK (const std::string &s="sk0")
 
virtual bool SendMessage (std::shared_ptr< const NavMsg > msg, std::shared_ptr< const NavAddr > addr) override
 
virtual void SetListener (DriverListener &l) override
 Set the entity which will receive incoming data. More...
 
virtual std::shared_ptr< NavAddrGetAddress (const NavAddrSignalK &name)
 
- Public Member Functions inherited from AbstractCommDriver
virtual std::pair< CommStatus, std::string > Clone ()
 Create a new virtual interface using a new instance of this driver. More...
 
std::string Key () const
 
virtual std::unordered_map< std::string, std::string > GetAttributes () const
 

Static Public Member Functions

static bool DiscoverSKServer (wxString &ip, int &port, int tSec)
 
static bool DiscoverSKServer (std::string serviceIdent, wxString &ip, int &port, int tSec)
 
static void initIXNetSystem ()
 
static void uninitIXNetSystem ()
 

Public Attributes

std::string m_self
 
std::string m_context
 
std::atomic_int m_Thread_run_flag
 
std::atomic_int m_threadActive
 
ConnectionParams m_params
 
DriverListenerm_listener
 
- Public Attributes inherited from AbstractCommDriver
const NavAddr::Bus bus
 
const std::string iface
 Physical device for 0183, else a unique string.
 
std::unordered_map< std::string, std::string > attributes
 

Additional Inherited Members

- Protected Member Functions inherited from AbstractCommDriver
 AbstractCommDriver (NavAddr::Bus b)
 
 AbstractCommDriver (NavAddr::Bus b, const std::string &s)
 

Detailed Description

Definition at line 56 of file comm_drv_signalk_net.h.


The documentation for this class was generated from the following files: