Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CWOP passcode config and action #2

Closed
wants to merge 1 commit into from

Conversation

opalmirror
Copy link

For hams, CWOP needs a passcode other than the default -1 to accept
data.

  • add a configuration setting CITIZEN_WEATHER_PASSCODE (passcode)
  • passcode defaults to -1 to maintain existing behavior
  • -1 may be replaced by passcode provided by CWOP server authority
  • passcode is read from conf file into config structure
  • apply passcode in TCP socket conversation with CWOP server

@opalmirror opalmirror mentioned this pull request Feb 15, 2014
@@ -368,8 +368,9 @@ int citizen_weather_send(struct config_type *config, char *aprsline)
}

// The login/header line
sprintf(buffer,"user %s pass -1 vers open2300 %s\n",
config->citizen_weather_id, VERSION);
sprintf(buffer,"user %s pass %s1 vers open2300 %s\n",
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

should the 1 after the %s be there? It isn't in win2300.c below.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Whoops! Will fix that and create another pull request.

For hams, CWOP needs a passcode other than the default -1 to accept
data.

* v2 fixes a typo introduced in linux2300.c
* add a configuration setting CITIZEN_WEATHER_PASSCODE (passcode)
* passcode defaults to -1 to maintain existing behavior
* -1 may be replaced by passcode provided by CWOP server authority
* passcode is read from conf file into config structure
* apply passcode in TCP socket conversation with CWOP server
@opalmirror
Copy link
Author

I've force updated master and fixed the issue there; will make another pull request

@opalmirror opalmirror closed this Feb 16, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants