Skip to content

Add API updates. See docs/API.md Part 1#159

Merged
Chris-AC9KH merged 10 commits into
JS8Call-improved:masterfrom
wmiler:api-station
Feb 1, 2026
Merged

Add API updates. See docs/API.md Part 1#159
Chris-AC9KH merged 10 commits into
JS8Call-improved:masterfrom
wmiler:api-station

Conversation

@wmiler

@wmiler wmiler commented Jan 23, 2026

Copy link
Copy Markdown
Collaborator

Part of #87

@wmiler wmiler requested a review from Chris-AC9KH January 23, 2026 22:44
@wmiler wmiler self-assigned this Jan 23, 2026
@wmiler wmiler added documentation Improvements or additions to documentation enhancement New feature or request labels Jan 23, 2026

@Chris-AC9KH Chris-AC9KH left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

While I didn't follow all the way thru API.md, the code that affects functionality in networkMessage.cpp is fine.

@Chris-AC9KH

Copy link
Copy Markdown
Collaborator

@wmiler Jeff's PR on the API js8call/js8call#92 will no longer merge into master. But can his code be copied into networkMessage.cpp giving him proper credit for it via comments?

@wmiler

wmiler commented Jan 24, 2026

Copy link
Copy Markdown
Collaborator Author

Mostly that can be done, it will need to be massaged more to get it into shape. And there are some bugs to be worked out of the API as a whole.

I'm going to go ahead and mark this as a WIP for now.

@wmiler wmiler added the WIP Work In Progress label Jan 24, 2026
@wmiler wmiler added this to the 2.6.0 milestone Jan 24, 2026
@wmiler wmiler mentioned this pull request Jan 24, 2026
@Trippnology

Copy link
Copy Markdown

As we already have RIG.PTT, shouldn't it be RIG.GET_PTT rather than STATION.GET_PTT?

@wmiler

wmiler commented Jan 24, 2026

Copy link
Copy Markdown
Collaborator Author

As we already have RIG.PTT, shouldn't it be RIG.GET_PTT rather than STATION.GET_PTT?

Yeah, I was considering that. Given that at the moment, you can only have one radio connected to one instance of JS8Call at a time. I suppose if that ever changes, we can always add a Station variant back in.

@wmiler

wmiler commented Jan 24, 2026

Copy link
Copy Markdown
Collaborator Author

Pushed a little early, so set_spot doesn't work yet, and get_spot is hackish, but I have the storm from h*ll bearing down on me.

Request for test: API call STATION.GET_OS

@wmiler wmiler changed the title Add STATION.VERSION and STATION.GET_PTT to API Add API updates. See docs/API.md Jan 29, 2026
@wmiler

wmiler commented Jan 30, 2026

Copy link
Copy Markdown
Collaborator Author

So we have a request to emit a 'CLOSE/SHUTDOWN' to the API before the program closes. I'm not exactly sure were that should be generated from, where I have access to networkMessage(). Any pointers?

@wmiler wmiler requested a review from Chris-AC9KH February 1, 2026 18:17
@wmiler

wmiler commented Feb 1, 2026

Copy link
Copy Markdown
Collaborator Author

@Chris-AC9KH Chris, when you get a chance, double check the code, and feel free to merge. I want to get some of this on master so people can test. Thanks.

@wmiler wmiler changed the title Add API updates. See docs/API.md Add API updates. See docs/API.md Part 1 Feb 1, 2026
@wmiler wmiler removed the WIP Work In Progress label Feb 1, 2026
Comment thread .gitignore
@Chris-AC9KH

Copy link
Copy Markdown
Collaborator

The code syntax is sound. Can't vouch for the functionality of the code, I think that can only be determined with testing.

@Chris-AC9KH Chris-AC9KH merged commit 428bb23 into JS8Call-improved:master Feb 1, 2026
@Chris-AC9KH

Copy link
Copy Markdown
Collaborator

Merged. Thanks!

@wmiler wmiler deleted the api-station branch February 1, 2026 19:09
@wmiler wmiler added the API label Mar 4, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

API documentation Improvements or additions to documentation enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants