Wi-Fi

Wi-Fi Class Reference

wifi let you control Wi-Fi on obnizOS runnning device

Scan

You can search for access points near your device.

Use obniz.wifi.scanWait() to get the name, macAddress and signal strength of the surrounding access points.

  • Scan Interval: 30seconds
  • Scan Method: Active Scan
console.log(await obniz.wifi.scanWait())
[
    {ssid: "testwifi1", macAddress: "280000000009", rssi: -41},
    {ssid: "testwifi2", macAddress: "280000000008", rssi: -59},
    {ssid: "testwifi3", macAddress: "280000000007", rssi: -82}
]

関連の質問