Skip to end of metadata
Go to start of metadata

You are viewing an old version of this content. View the current version.

Compare with Current View Version History

Version 1 Next »

URL

http://<<ip address>>/rest/network

Method

GET

Description

Receives information on the current network setup.

Response

{
  "ipaddress": [«list of ip addresses»]
}

Status

PENDING

URL

http://<<ip address>>/rest/network

Method

PUT

Description

Sets network settings, will reboot afterwards.

Request

{
  "type": "wifi|ethernet",
  "connection": "static|dhcp",
  "static": {
    "ipaddress": «ipaddress»,
    "netmask": «netmask»,
    "gateway": «gateway»
  },
  "wifi": {
    "ssid": «ssid»,
    "key": «pre shared key»
  }
}

Response

HTTP204 when succesful, followed by a reboot

Possible Errors

HTTP400 when request was invalid

{
  "message": «human readable error»
}

Status

PENDING

  • No labels

0 Comments

You are not logged in. Any changes you make will be marked as anonymous. You may want to Log In if you already have an account.