obniz Docs
  • obniz.com
  • Developer's Console
  • Guides
  • Reference

obniz.js, Device Control

  • Overview
  • Class Obniz
    • Obniz.M5StickC
    • Obniz.M5StackBasic
  • Connection
    • Disconnection And Reset
    • Multiple Connection
    • Local Connect
    • Closed Network
    • compatibility
  • Wait and Repeat
  • PartsLibrary
    • Import hosted parts
    • Create owned parts
  • IO
    • Output
    • Input
    • DriveMethod
    • Pull-up-down
  • IO-Animation
  • AD
  • PWM
    • Modulation
  • UART
    • Send
    • Receive
  • SPI
    • Master Read/Write
  • I2C
    • Master Read/Write
    • Slave Read
  • LogicAnalyzer
  • Measurement
  • Display
  • Switch
  • Sleep
  • TCP
  • Wi-Fi
  • BLE
    • Central: Scan
    • Central: Advanced conditional scanning
    • Central: Connection
    • Central: Pairing
    • Central: Services and characteristics
    • Central: Read and Write
    • Central: Receiving change notifications
    • Peripheral: Advertisement
    • Peripheral: Services and characteristics registration
    • Peripheral: Monitoring update
    • Peripheral: Update values
    • Peripheral: Notification of value change
  • Connected Network
  • Metadata
  • Messaging
  • App
  • Plugin
  • Changelog
obniz Docs Reference obniz.js, Device Control Wi-Fi

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}
]

Doc navigation

← TCP BLE →
© 2020 obniz Docs
IoT for all developer with just obniz | iot.obniz.com

タイトル

本文