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

core: services: helper: Add check_internet_access endpoint #1692

Merged

Conversation

patrickelectric
Copy link
Member

@patrickelectric patrickelectric commented May 19, 2023

Allow frontend to check if the vehicle has internet access

Return:

{
  "ArduPilot": {
    "site": "http://firmware.ardupilot.org",
    "online": true,
    "error": null
  },
  "AWS": {
    "site": "http://amazon.com",
    "online": true,
    "error": null
  },
  "Cloudflare": {
    "site": "http://1.1.1.1/",
    "online": true,
    "error": null
  },
  "GitHub": {
    "site": "http://githubaaaaaaaaaaaa.com",
    "online": false,
    "error": "Cannot connect to host githubaaaaaaaaaaaa.com:80 ssl:default [Name or service not known]"
  }
}

Signed-off-by: Patrick José Pereira <patrickelectric@gmail.com>
@ES-Alexander
Copy link
Collaborator

Copy link
Collaborator

@joaoantoniocardoso joaoantoniocardoso left a comment

Choose a reason for hiding this comment

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

LGTM

@patrickelectric patrickelectric merged commit 86e375a into bluerobotics:master May 22, 2023
5 checks passed
@patrickelectric patrickelectric deleted the check_internet_access branch May 22, 2023 17:17
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.

None yet

3 participants