leaps_wifi_cfg_get

This call is available only on the ethernet gateway. It gets the current WiFi configuration. Refer to leaps_wifi_cfg_set for the payload layout and field descriptions.


Input
  • (none)

Output
  • ステータスコード

  • region: ‘0’ | ‘1’ | ‘2’ (WiFi regulatory region code)

    • ‘0’: Europe

    • ‘1’: North America

    • ‘2’: Asia

  • ssid: ASCII string (SSID, max 31 characters on wire, no null terminator)

  • psk: ASCII string (WPA2 passphrase, 8–31 characters on wire, no null terminator)


Example

TLV Request

Type

Length

0x9D

0x00

Type 0x9D (157 dec) means command leaps_wifi_cfg_get

TLV response

Type

Length

Value

Type

Length

Value

byte 0: region
bytes 1–3: reserved
byte 4: ssid_len
bytes 5..(5+ssid_len-1): ssid
byte 5+ssid_len: psk_len
(5+ssid_len+1)..end: psk

0x40

0x01

0x00

0x7D

0x1C

0x00 0x00 0x00 0x00 0x09 0x4D 0x79 0x4E 0x65 0x74 0x77 0x6F 0x72 0x6B 0x0D 0x4D 0x79 0x50 0x61 0x73 0x73 0x77 0x6F 0x72 0x64 0x31 0x32 0x33

Type 0x40 means status code

Type 0x7D (125 dec) means WiFi configuration (same layout as leaps_wifi_cfg_set input)