Skip to content

Feature request: publish the current connection state #52

@gennartan

Description

@gennartan

I would be nice to have a topic to publish the current connection state. This is useful when you want to check the node status in a single command. This is also useful if you want to automatize ntrip control. In case of connection error, the state could be retrived easily by other nodes.

My initial idea was to publish the node state on the diagnostics topic. It is nice when a human wants to check the node status, but lacks of reliability when another node subscribe and use this information.

So I think that the best idea would be to create a new pacakge ntrip_msgs that would contain the definition of the connection status. The ntrip client would then publish this message at regular interval.

Here is a suggestion for the message type:

uint8 STATUS_INITIALIZING = 0
uint8 STATUS_CONNECTED = 1
uint8 STATUS_SERVER_NOT_FOUND = 2
uint8 STATUS_BAD_MOUNTPOINT = 3
uint8 STATUS_BAD_CREDENTIALS = 4

uint8 status
string server
string mountpoint
string message

What do you think about it ?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions