Versions Compared

Key

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

...

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 successful, followed by a reboot

Possible Errors

HTTP400 when request was invalid

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

Status

Status
colourYellowGreen
titlepartly implemented
TODO: reboot