Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

URL

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

Method

GET

Description

Receives information on the current network setup.

Response

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

Status

Status
colourGreen
titleimplemented

URL

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

Method

GET

Description

Receives information on the current network setup.

Response

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

Status

Status
colour

Yellow

Green
title

pending

implemented

URL

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

Method

PUT

Description

Sets network settings, will reboot afterwards.

Request

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

Response

HTTP204 when succesfulsuccessful, followed by a reboot

Possible Errors

HTTP400 when request was invalid

Code Block
languagejson
{
  "message": «human readable error»
}

Status

Status
colourYellow
titlependingpartly implemented

TODO: reboot