Skip to content

MiP_WiFi

github-actions[bot] edited this page Aug 10, 2026 · 4 revisions

Class MiP_WiFi

Manages MiP's WiFi capability.

Table of Contents


Public Functions

begin

Signature: uint8_t begin(const char *ssid, const char *password, const char *hostname)

Summary: Wraps WiFi.begin(). Connects to a wireless access point and loads the MPU-D1 mini with OTA programming support.

Parameters:

Parameter Description
ssid The station ID.
password The access point's connection password.
hostname MiP's hostname on the wireless network.

Returns: WL_CONNECTED if the connection attempt was successful, else it returns the error code from WiFi.connect().


connect

Signature: uint8_t connect()

Summary: Wraps WiFi.connect(). While attempting to connect, MiP's eyes light up in a Knight Rider-style back-and-forth animation.

Returns: WL_CONNECTED if the connection attempt was successful, else it returns the error code from WiFi.connect().


enableAirplaneMode

Signature: void enableAirplaneMode()

Summary: Turns off WiFi and Bluetooth. If MiP is in app mode, which requires Bluetooth, MiP is switched to its default gesture mode.


disableAirplaneMode

Signature: uint8_t disableAirplaneMode()

Summary: Turns the WiFi radio on and attempts to connect to the last access point to which MiP was connected.

Returns: WL_CONNECTED if the connection attempt was successful, else it returns the error code from WiFi.connect().


Clone this wiki locally