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

command to control the network modes #13

Open
yorkie opened this issue Aug 3, 2019 · 1 comment
Open

command to control the network modes #13

yorkie opened this issue Aug 3, 2019 · 1 comment

Comments

@yorkie
Copy link
Member

yorkie commented Aug 3, 2019

Is your feature request related to a problem? Please describe.

In hardware testing on YodaOS, we occurs some problems about controlling network modes, battery states and bluetooth states in usual. The following is script that I have achived by switching networking mode:

#!/usr/bin/env node

'use strict'

var property = require('@yoda/property')
var NetworkAgent = require('@yoda/network').NetworkAgent
var agent = new NetworkAgent()

property.set('service.rokid.netmode', '0')
agent.closeWifiAP()
  .then(() => {
     agent.connectWifi('foobar', 'x')
  })
  .then(() => {
    console.log('Switch done, please check the wpa is up')
    process.exit()
  })

yoda-platform-tools should cover hardware testing requirement for now IMO :)

@issue-label-bot
Copy link

Issue-Label Bot is automatically applying the label feature_request to this issue, with a confidence of 0.91. Please mark this comment with 👍 or 👎 to give our bot feedback!

Links: app homepage, dashboard and code for this bot.

@yorkie yorkie changed the title Command to control the network modes command to control the network modes Aug 3, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant